Rev 1959 | Rev 2234 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#
# pkg Makefile -- requires OpenWatcom (wmake)
# Copyright (C) 2021-2024 Mateusz Viste
#
CFLAGS = -0 -mc -os -wx -we -d0 -i=zlib
LDFLAGS = -lr -fe=pkg.exe -fm=pkg.map
LIBS = zlib\zlib_c.lib svarlang.lib\svarlngc.lib
all: pkg.exe
release: pkg.exe .symbolic
IF EXIST pkg.zip DEL pkg.zip
IF EXIST pkg.svp DEL pkg.svp
mkdir appinfo
mkdir bin
mkdir doc
copy pkg.lng bin
copy pkg.exe bin
copy pkg.lsm appinfo
copy pkg.txt doc
zip -9moDkrX pkg.svp appinfo bin doc
zip -9oDkrX pkg.zip nls_utf8 svarlang.lib zlib *.c *.h pkg.txt pkg.lsm makefile
rmdir appinfo
rmdir bin
rmdir doc
pkg.exe: main.obj healthck.obj crc32.obj fileexst.obj helpers.obj inf.obj libunzip.obj loadconf.obj lsm.obj pkginst.obj pkgrem.obj trim.obj showinst.obj unzip.obj deflang.obj
wcl $(LDFLAGS) $(LIBS) *.obj
upx --8086 -9 pkg.exe
deflang.obj: nls_utf8\pkg_??.txt
cd nls_utf8
copy pkg_en.txt en.txt
utf8tocp 850 pkg_br.txt > br.txt
utf8tocp 850 pkg_de.txt > de.txt
utf8tocp 850 pkg_fr.txt > fr.txt
utf8tocp 850 pkg_dk.txt > dk.txt
utf8tocp 852 pkg_si.txt > si.txt
utf8tocp 857 pkg_tr.txt > tr.txt
utf8tocp maz pkg_pl.txt > pl.txt
..\svarlang.lib\tlumacz en br de fr dk si tr pl > tlumacz.log
move /y out.lng ..\pkg.lng
move /y deflang.c ..
del ??.txt
cd ..
wcc $(CFLAGS) deflang.c
main.obj: main.c
wcc $(CFLAGS) main.c
crc32.obj: crc32.c
wcc $(CFLAGS) crc32.c
fileexst.obj: fileexst.c
wcc $(CFLAGS) fileexst.c
healthck.obj: healthck.c
wcc $(CFLAGS) healthck.c
helpers.obj: helpers.c
wcc $(CFLAGS) helpers.c
inf.obj: inf.c
wcc $(CFLAGS) inf.c
libunzip.obj: libunzip.c
wcc $(CFLAGS) libunzip.c
loadconf.obj: loadconf.c
wcc $(CFLAGS) loadconf.c
lsm.obj: lsm.c
wcc $(CFLAGS) lsm.c
pkginst.obj: pkginst.c
wcc $(CFLAGS) pkginst.c
pkgrem.obj: pkgrem.c
wcc $(CFLAGS) pkgrem.c
trim.obj: trim.c
wcc $(CFLAGS) trim.c
showinst.obj: showinst.c
wcc $(CFLAGS) showinst.c
unzip.obj: unzip.c
wcc $(CFLAGS) unzip.c
clean: .symbolic
del *.obj
del pkg.exe