Subversion Repositories SvarDOS

Rev

Rev 2234 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2234 Rev 2235
Line 1... Line 1...
1
#
1
#
2
# pkg Makefile -- requires OpenWatcom (wmake)
2
# pkg Makefile -- requires OpenWatcom (wmake)
3
# Copyright (C) 2021-2024 Mateusz Viste
3
# Copyright (C) 2021-2024 Mateusz Viste
4
#
4
#
5
 
5
 
-
 
6
!ifdef __UNIX__
-
 
7
SEP=/
-
 
8
MV = mv
-
 
9
CP = cp
-
 
10
!else
-
 
11
SEP=\
-
 
12
MV = move /Y
-
 
13
CP = copy
-
 
14
!endif
-
 
15
 
-
 
16
TLUMACZ = ..$(SEP)svarlang.lib$(SEP)tlumacz.exe
-
 
17
 
6
CFLAGS = -0 -mc -os -wx -we -d0 -i=zlib
18
CFLAGS = -q -0 -mc -os -wx -we -d0 -i=zlib
7
LDFLAGS = -lr -fe=pkg.exe -fm=pkg.map
19
LDFLAGS = -lr -fe=pkg.exe -fm=pkg.map
8
LIBS = zlib\zlib_c.lib svarlang.lib\svarlngc.lib
20
LIBS = zlib/zlib_c.lib svarlang.lib/svarlngc.lib
9
 
21
 
10
all: pkg.exe
22
all: pkg.exe
11
 
23
 
12
release: pkg.exe .symbolic
24
release: pkg.exe .symbolic
13
	IF EXIST pkg.zip DEL pkg.zip
25
	rm -f pkg.zip
14
	IF EXIST pkg.svp DEL pkg.svp
26
	rm -f pkg.svp
15
	mkdir appinfo
27
	mkdir appinfo
16
	mkdir bin
28
	mkdir bin
17
	mkdir doc
29
	mkdir doc
18
	copy pkg.lng bin
30
	copy pkg.lng bin
19
	copy pkg.exe bin
31
	copy pkg.exe bin
Line 25... Line 37...
25
	rmdir bin
37
	rmdir bin
26
	rmdir doc
38
	rmdir doc
27
 
39
 
28
pkg.exe: main.obj healthck.obj crc32.obj fileexst.obj helpers.obj inf.obj libunzip.obj loadconf.obj lsm.obj pkginst.obj pkgrem.obj trim.obj showinst.obj unzip.obj deflang.obj
40
pkg.exe: main.obj healthck.obj crc32.obj fileexst.obj helpers.obj inf.obj libunzip.obj loadconf.obj lsm.obj pkginst.obj pkgrem.obj trim.obj showinst.obj unzip.obj deflang.obj
29
	wcl $(LDFLAGS) $(LIBS) *.obj
41
	wcl $(LDFLAGS) $(LIBS) *.obj
30
	upx --8086 -9 pkg.exe
42
	upx --8086 --best pkg.exe
31
 
43
 
32
deflang.obj: nls_utf8\pkg_??.txt
44
deflang.obj: nls_utf8/pkg_??.txt
33
	cd nls_utf8
45
	cd nls_utf8
-
 
46
	rm -f ??.txt
34
	copy pkg_en.txt en.txt
47
	$(CP) pkg_en.txt en.txt
35
	utf8tocp 850 pkg_br.txt br.txt
48
	utf8tocp 850 pkg_br.txt br.txt
36
	utf8tocp 850 pkg_de.txt de.txt
49
	utf8tocp 850 pkg_de.txt de.txt
37
	utf8tocp 850 pkg_fr.txt fr.txt
50
	utf8tocp 850 pkg_fr.txt fr.txt
38
	utf8tocp 850 pkg_dk.txt dk.txt
51
	utf8tocp 850 pkg_dk.txt dk.txt
39
	utf8tocp 852 pkg_si.txt si.txt
52
	utf8tocp 852 pkg_si.txt si.txt
40
	utf8tocp 857 pkg_tr.txt tr.txt
53
	utf8tocp 857 pkg_tr.txt tr.txt
41
	utf8tocp maz pkg_pl.txt pl.txt
54
	utf8tocp maz pkg_pl.txt pl.txt
42
	..\svarlang.lib\tlumacz en br de fr dk si tr pl > tlumacz.log
55
	$(TLUMACZ) en br de fr dk si tr pl > tlumacz.log
43
	move /y out.lng ..\pkg.lng
56
	$(MV) out.lng ..$(SEP)pkg.lng
44
	move /y deflang.c ..
57
	$(MV) deflang.c ..
45
	del ??.txt
58
	rm -f ??.txt
46
	cd ..
59
	cd ..
47
	wcc $(CFLAGS) deflang.c
60
	wcc $(CFLAGS) -fo=deflang.obj deflang.c
-
 
61
 
48
 
62
 
49
main.obj: main.c
63
main.obj: main.c
50
	wcc $(CFLAGS) main.c
64
	wcc $(CFLAGS) -fo=$*.obj $[@
51
 
65
 
52
crc32.obj: crc32.c
66
crc32.obj: crc32.c
53
	wcc $(CFLAGS) crc32.c
67
	wcc $(CFLAGS) -fo=$*.obj $[@
54
 
68
 
55
fileexst.obj: fileexst.c
69
fileexst.obj: fileexst.c
56
	wcc $(CFLAGS) fileexst.c
70
	wcc $(CFLAGS) -fo=$*.obj $[@
57
 
71
 
58
healthck.obj: healthck.c
72
healthck.obj: healthck.c
59
	wcc $(CFLAGS) healthck.c
73
	wcc $(CFLAGS) -fo=$*.obj $[@
60
 
74
 
61
helpers.obj: helpers.c
75
helpers.obj: helpers.c
62
	wcc $(CFLAGS) helpers.c
76
	wcc $(CFLAGS) -fo=$*.obj $[@
63
 
77
 
64
inf.obj: inf.c
78
inf.obj: inf.c
65
	wcc $(CFLAGS) inf.c
79
	wcc $(CFLAGS) -fo=$*.obj $[@
66
 
80
 
67
libunzip.obj: libunzip.c
81
libunzip.obj: libunzip.c
68
	wcc $(CFLAGS) libunzip.c
82
	wcc $(CFLAGS) -fo=$*.obj $[@
69
 
83
 
70
loadconf.obj: loadconf.c
84
loadconf.obj: loadconf.c
71
	wcc $(CFLAGS) loadconf.c
85
	wcc $(CFLAGS) -fo=$*.obj $[@
72
 
86
 
73
lsm.obj: lsm.c
87
lsm.obj: lsm.c
74
	wcc $(CFLAGS) lsm.c
88
	wcc $(CFLAGS) -fo=$*.obj $[@
75
 
89
 
76
pkginst.obj: pkginst.c
90
pkginst.obj: pkginst.c
77
	wcc $(CFLAGS) pkginst.c
91
	wcc $(CFLAGS) -fo=$*.obj $[@
78
 
92
 
79
pkgrem.obj: pkgrem.c
93
pkgrem.obj: pkgrem.c
80
	wcc $(CFLAGS) pkgrem.c
94
	wcc $(CFLAGS) -fo=$*.obj $[@
81
 
95
 
82
trim.obj: trim.c
96
trim.obj: trim.c
83
	wcc $(CFLAGS) trim.c
97
	wcc $(CFLAGS) -fo=$*.obj $[@
84
 
98
 
85
showinst.obj: showinst.c
99
showinst.obj: showinst.c
86
	wcc $(CFLAGS) showinst.c
100
	wcc $(CFLAGS) -fo=$*.obj $[@
87
 
101
 
88
unzip.obj: unzip.c
102
unzip.obj: unzip.c
89
	wcc $(CFLAGS) unzip.c
103
	wcc $(CFLAGS) -fo=$*.obj $[@
90
 
104
 
91
clean: .symbolic
105
clean: .symbolic
92
	rm -f *.obj
106
	rm -f *.obj
93
	rm -f pkg.exe
107
	rm -f pkg.exe
94
	rm -f pkg.lng
108
	rm -f pkg.lng
95
	rm -f pkg.map
109
	rm -f pkg.map
96
	rm -f deflang.c
110
	rm -f deflang.c
97
 
-
 
-
 
111
	rm -f nls_utf8/tlumacz.log
98
 
112