Subversion Repositories SvarDOS

Rev

Rev 1696 | Rev 1879 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
221 mateuszvis 1
#
268 mateuszvis 2
# pkg Makefile -- requires OpenWatcom (wmake)
1684 mateusz.vi 3
# Copyright (C) 2021-2024 Mateusz Viste
221 mateuszvis 4
#
5
 
266 mateuszvis 6
CFLAGS = -0 -mc -os -wx -we -d0 -i=zlib
1507 mateusz.vi 7
LDFLAGS = -lr -fe=pkg.exe -fm=pkg.map
613 mateuszvis 8
LIBS = zlib\zlib_c.lib svarlang.lib\svarlngc.lib
221 mateuszvis 9
 
268 mateuszvis 10
all: pkg.exe
221 mateuszvis 11
 
275 mateuszvis 12
release: pkg.exe .symbolic
992 mateusz.vi 13
	IF EXIST pkg.zip DEL pkg.zip
14
	IF EXIST pkg.svp DEL pkg.svp
275 mateuszvis 15
	mkdir appinfo
16
	mkdir bin
1602 mateusz.vi 17
	copy pkg.lng bin
275 mateuszvis 18
	copy pkg.lsm appinfo
1602 mateusz.vi 19
	zip -9moDkrX pkg.svp appinfo bin
669 mateusz.vi 20
	zip -9oDkrX pkg.zip nls_utf8 svarlang.lib zlib *.c *.h pkg.lsm makefile
302 mateuszvis 21
	rmdir appinfo
22
	rmdir bin
275 mateuszvis 23
 
613 mateuszvis 24
pkg.exe: main.obj crc32.obj fileexst.obj helpers.obj inf.obj kprintf.obj libunzip.obj loadconf.obj lsm.obj pkginst.obj pkgrem.obj trim.obj showinst.obj unzip.obj deflang.obj
221 mateuszvis 25
	wcl $(LDFLAGS) $(LIBS) *.obj
1696 mateusz.vi 26
	upx --8086 -9 pkg.exe
221 mateuszvis 27
 
1771 mateusz.vi 28
deflang.obj: nls_utf8\pkg_??.txt
613 mateuszvis 29
	cd nls_utf8
30
	copy pkg_en.txt en.txt
1188 mateusz.vi 31
	utf8tocp 850 pkg_br.txt > br.txt
613 mateuszvis 32
	utf8tocp 850 pkg_de.txt > de.txt
33
	utf8tocp 850 pkg_fr.txt > fr.txt
34
	utf8tocp 850 pkg_dk.txt > dk.txt
35
	utf8tocp 852 pkg_si.txt > si.txt
36
	utf8tocp 857 pkg_tr.txt > tr.txt
37
	utf8tocp maz pkg_pl.txt > pl.txt
1188 mateusz.vi 38
	..\svarlang.lib\tlumacz en br de fr dk si tr pl > tlumacz.log
758 mateusz.vi 39
	move /y out.lng ..\pkg.lng
40
	move /y deflang.c ..
613 mateuszvis 41
	del ??.txt
42
	cd ..
43
	wcc $(CFLAGS) deflang.c
244 mateuszvis 44
 
221 mateuszvis 45
main.obj: main.c
46
	wcc $(CFLAGS) main.c
47
 
48
crc32.obj: crc32.c
49
	wcc $(CFLAGS) crc32.c
50
 
51
fileexst.obj: fileexst.c
52
	wcc $(CFLAGS) fileexst.c
53
 
54
helpers.obj: helpers.c
55
	wcc $(CFLAGS) helpers.c
56
 
57
inf.obj: inf.c
58
	wcc $(CFLAGS) inf.c
59
 
60
kprintf.obj: kprintf.c
61
	wcc $(CFLAGS) kprintf.c
62
 
63
libunzip.obj: libunzip.c
64
	wcc $(CFLAGS) libunzip.c
65
 
66
loadconf.obj: loadconf.c
67
	wcc $(CFLAGS) loadconf.c
68
 
69
lsm.obj: lsm.c
70
	wcc $(CFLAGS) lsm.c
71
 
72
pkginst.obj: pkginst.c
73
	wcc $(CFLAGS) pkginst.c
74
 
75
pkgrem.obj: pkgrem.c
76
	wcc $(CFLAGS) pkgrem.c
77
 
256 mateuszvis 78
trim.obj: trim.c
79
	wcc $(CFLAGS) trim.c
221 mateuszvis 80
 
81
showinst.obj: showinst.c
82
	wcc $(CFLAGS) showinst.c
83
 
296 mateuszvis 84
unzip.obj: unzip.c
85
	wcc $(CFLAGS) unzip.c
86
 
221 mateuszvis 87
clean: .symbolic
88
	del *.obj
268 mateuszvis 89
	del pkg.exe