Subversion Repositories SvarDOS

Rev

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

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