Subversion Repositories SvarDOS

Rev

Rev 1879 | Rev 1959 | 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
1879 mateusz.vi 17
	mkdir doc
1602 mateusz.vi 18
	copy pkg.lng bin
1879 mateusz.vi 19
	copy pkg.exe bin
275 mateuszvis 20
	copy pkg.lsm appinfo
1882 mateusz.vi 21
	copy pkg.txt doc
1879 mateusz.vi 22
	zip -9moDkrX pkg.svp appinfo bin doc
23
	zip -9oDkrX pkg.zip nls_utf8 svarlang.lib zlib *.c *.h pkg.txt pkg.lsm makefile
302 mateuszvis 24
	rmdir appinfo
25
	rmdir bin
1879 mateusz.vi 26
	rmdir doc
275 mateuszvis 27
 
613 mateuszvis 28
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 29
	wcl $(LDFLAGS) $(LIBS) *.obj
1696 mateusz.vi 30
	upx --8086 -9 pkg.exe
221 mateuszvis 31
 
1771 mateusz.vi 32
deflang.obj: nls_utf8\pkg_??.txt
613 mateuszvis 33
	cd nls_utf8
34
	copy pkg_en.txt en.txt
1188 mateusz.vi 35
	utf8tocp 850 pkg_br.txt > br.txt
613 mateuszvis 36
	utf8tocp 850 pkg_de.txt > de.txt
37
	utf8tocp 850 pkg_fr.txt > fr.txt
38
	utf8tocp 850 pkg_dk.txt > dk.txt
39
	utf8tocp 852 pkg_si.txt > si.txt
40
	utf8tocp 857 pkg_tr.txt > tr.txt
41
	utf8tocp maz pkg_pl.txt > pl.txt
1188 mateusz.vi 42
	..\svarlang.lib\tlumacz en br de fr dk si tr pl > tlumacz.log
758 mateusz.vi 43
	move /y out.lng ..\pkg.lng
44
	move /y deflang.c ..
613 mateuszvis 45
	del ??.txt
46
	cd ..
47
	wcc $(CFLAGS) deflang.c
244 mateuszvis 48
 
221 mateuszvis 49
main.obj: main.c
50
	wcc $(CFLAGS) main.c
51
 
52
crc32.obj: crc32.c
53
	wcc $(CFLAGS) crc32.c
54
 
55
fileexst.obj: fileexst.c
56
	wcc $(CFLAGS) fileexst.c
57
 
58
helpers.obj: helpers.c
59
	wcc $(CFLAGS) helpers.c
60
 
61
inf.obj: inf.c
62
	wcc $(CFLAGS) inf.c
63
 
64
kprintf.obj: kprintf.c
65
	wcc $(CFLAGS) kprintf.c
66
 
67
libunzip.obj: libunzip.c
68
	wcc $(CFLAGS) libunzip.c
69
 
70
loadconf.obj: loadconf.c
71
	wcc $(CFLAGS) loadconf.c
72
 
73
lsm.obj: lsm.c
74
	wcc $(CFLAGS) lsm.c
75
 
76
pkginst.obj: pkginst.c
77
	wcc $(CFLAGS) pkginst.c
78
 
79
pkgrem.obj: pkgrem.c
80
	wcc $(CFLAGS) pkgrem.c
81
 
256 mateuszvis 82
trim.obj: trim.c
83
	wcc $(CFLAGS) trim.c
221 mateuszvis 84
 
85
showinst.obj: showinst.c
86
	wcc $(CFLAGS) showinst.c
87
 
296 mateuszvis 88
unzip.obj: unzip.c
89
	wcc $(CFLAGS) unzip.c
90
 
221 mateuszvis 91
clean: .symbolic
92
	del *.obj
268 mateuszvis 93
	del pkg.exe