Subversion Repositories SvarDOS

Rev

Rev 1188 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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