Subversion Repositories SvarDOS

Rev

Rev 613 | Rev 669 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 613 Rev 614
1
#
1
#
2
# pkg Makefile -- requires OpenWatcom (wmake)
2
# pkg Makefile -- requires OpenWatcom (wmake)
3
# Copyright (C) 2021 Mateusz Viste
3
# Copyright (C) 2021 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
	mkdir appinfo
13
	mkdir appinfo
14
	mkdir bin
14
	mkdir bin
15
	mkdir nls
15
	mkdir nls
16
	copy pkg.lng nls
16
	copy pkg.lng nls
17
	upx --8086 -9 pkg.exe -o bin\pkg.exe
17
	upx --8086 -9 pkg.exe -o bin\pkg.exe
18
	copy pkg.lsm appinfo
18
	copy pkg.lsm appinfo
19
	zip -9moDkrX pkg.zip appinfo bin nls
19
	zip -9moDkrX pkg.zip appinfo bin nls
20
	rmdir appinfo
20
	rmdir appinfo
21
	rmdir bin
21
	rmdir bin
22
	rmdir nls
22
	rmdir nls
23
 
23
 
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
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
25
	wcl $(LDFLAGS) $(LIBS) *.obj
25
	wcl $(LDFLAGS) $(LIBS) *.obj
26
 
26
 
27
deflang.obj: nls_utf8\pkg_en.txt
27
deflang.obj: nls_utf8\pkg_en.txt
28
	cd nls_utf8
28
	cd nls_utf8
29
	copy pkg_en.txt en.txt
29
	copy pkg_en.txt en.txt
30
	utf8tocp 850 pkg_de.txt > de.txt
30
	utf8tocp 850 pkg_de.txt > de.txt
31
	utf8tocp 850 pkg_fr.txt > fr.txt
31
	utf8tocp 850 pkg_fr.txt > fr.txt
32
	utf8tocp 850 pkg_dk.txt > dk.txt
32
	utf8tocp 850 pkg_dk.txt > dk.txt
33
	utf8tocp 852 pkg_si.txt > si.txt
33
	utf8tocp 852 pkg_si.txt > si.txt
34
	utf8tocp 857 pkg_tr.txt > tr.txt
34
	utf8tocp 857 pkg_tr.txt > tr.txt
35
	utf8tocp maz pkg_pl.txt > pl.txt
35
	utf8tocp maz pkg_pl.txt > pl.txt
36
	..\svarlang.lib\tlumacz en de fr dk si tr pl
36
	..\svarlang.lib\tlumacz en de fr dk si tr pl
37
	move out.lng ..\pkg.lng
37
	move out.lng ..\pkg.lng
38
	move deflang.c ..
38
	move deflang.c ..
39
	del ??.txt
39
	del ??.txt
40
	cd ..
40
	cd ..
41
	wcc $(CFLAGS) deflang.c
41
	wcc $(CFLAGS) deflang.c
42
 
42
 
43
main.obj: main.c
43
main.obj: main.c
44
	wcc $(CFLAGS) main.c
44
	wcc $(CFLAGS) main.c
45
 
45
 
46
crc32.obj: crc32.c
46
crc32.obj: crc32.c
47
	wcc $(CFLAGS) crc32.c
47
	wcc $(CFLAGS) crc32.c
48
 
48
 
49
fileexst.obj: fileexst.c
49
fileexst.obj: fileexst.c
50
	wcc $(CFLAGS) fileexst.c
50
	wcc $(CFLAGS) fileexst.c
51
 
51
 
52
helpers.obj: helpers.c
52
helpers.obj: helpers.c
53
	wcc $(CFLAGS) helpers.c
53
	wcc $(CFLAGS) helpers.c
54
 
54
 
55
inf.obj: inf.c
55
inf.obj: inf.c
56
	wcc $(CFLAGS) inf.c
56
	wcc $(CFLAGS) inf.c
57
 
57
 
58
kprintf.obj: kprintf.c
58
kprintf.obj: kprintf.c
59
	wcc $(CFLAGS) kprintf.c
59
	wcc $(CFLAGS) kprintf.c
60
 
60
 
61
libunzip.obj: libunzip.c
61
libunzip.obj: libunzip.c
62
	wcc $(CFLAGS) libunzip.c
62
	wcc $(CFLAGS) libunzip.c
63
 
63
 
64
loadconf.obj: loadconf.c
64
loadconf.obj: loadconf.c
65
	wcc $(CFLAGS) loadconf.c
65
	wcc $(CFLAGS) loadconf.c
66
 
66
 
67
lsm.obj: lsm.c
67
lsm.obj: lsm.c
68
	wcc $(CFLAGS) lsm.c
68
	wcc $(CFLAGS) lsm.c
69
 
69
 
70
pkginst.obj: pkginst.c
70
pkginst.obj: pkginst.c
71
	wcc $(CFLAGS) pkginst.c
71
	wcc $(CFLAGS) pkginst.c
72
 
72
 
73
pkgrem.obj: pkgrem.c
73
pkgrem.obj: pkgrem.c
74
	wcc $(CFLAGS) pkgrem.c
74
	wcc $(CFLAGS) pkgrem.c
75
 
75
 
76
trim.obj: trim.c
76
trim.obj: trim.c
77
	wcc $(CFLAGS) trim.c
77
	wcc $(CFLAGS) trim.c
78
 
78
 
79
showinst.obj: showinst.c
79
showinst.obj: showinst.c
80
	wcc $(CFLAGS) showinst.c
80
	wcc $(CFLAGS) showinst.c
81
 
81
 
82
unzip.obj: unzip.c
82
unzip.obj: unzip.c
83
	wcc $(CFLAGS) unzip.c
83
	wcc $(CFLAGS) unzip.c
84
 
84
 
85
clean: .symbolic
85
clean: .symbolic
86
	del *.obj
86
	del *.obj
87
	del pkg.exe
87
	del pkg.exe
88
 
88