Subversion Repositories SvarDOS

Rev

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

Rev 296 Rev 302
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
8
LIBS = zlib\zlib_c.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 nls_utf8\pkg_en.txt nls\pkg.en
16
	copy nls_utf8\pkg_en.txt nls\pkg.en
17
	utf8tocp 850 nls_utf8\pkg_de.txt > nls\pkg.de
17
	utf8tocp 850 nls_utf8\pkg_de.txt > nls\pkg.de
18
	utf8tocp 850 nls_utf8\pkg_fr.txt > nls\pkg.fr
18
	utf8tocp 850 nls_utf8\pkg_fr.txt > nls\pkg.fr
19
	utf8tocp 850 nls_utf8\pkg_dk.txt > nls\pkg.dk
19
	utf8tocp 850 nls_utf8\pkg_dk.txt > nls\pkg.dk
20
	utf8tocp 852 nls_utf8\pkg_si.txt > nls\pkg.si
20
	utf8tocp 852 nls_utf8\pkg_si.txt > nls\pkg.si
21
	utf8tocp 857 nls_utf8\pkg_tr.txt > nls\pkg.tr
21
	utf8tocp 857 nls_utf8\pkg_tr.txt > nls\pkg.tr
22
	utf8tocp maz nls_utf8\pkg_pl.txt > nls\pkg.pl
22
	utf8tocp maz nls_utf8\pkg_pl.txt > nls\pkg.pl
23
	upx --8086 -9 pkg.exe -o bin\pkg.exe
23
	upx --8086 -9 pkg.exe -o bin\pkg.exe
24
	copy pkg.lsm appinfo
24
	copy pkg.lsm appinfo
25
	zip -9 -m -o -r pkg.zip appinfo bin nls
25
	zip -9moDkr pkg.zip appinfo bin nls
-
 
26
	rmdir appinfo
-
 
27
	rmdir bin
-
 
28
	rmdir nls
26
 
29
 
27
pkg.exe: kitten.obj 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
30
pkg.exe: kitten.obj 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
28
	wcl $(LDFLAGS) $(LIBS) *.obj
31
	wcl $(LDFLAGS) $(LIBS) *.obj
29
 
32
 
30
kitten.obj: kitten\kitten.c
33
kitten.obj: kitten\kitten.c
31
	wcc $(CFLAGS) kitten\kitten.c
34
	wcc $(CFLAGS) kitten\kitten.c
32
 
35
 
33
main.obj: main.c
36
main.obj: main.c
34
	wcc $(CFLAGS) main.c
37
	wcc $(CFLAGS) main.c
35
 
38
 
36
crc32.obj: crc32.c
39
crc32.obj: crc32.c
37
	wcc $(CFLAGS) crc32.c
40
	wcc $(CFLAGS) crc32.c
38
 
41
 
39
fileexst.obj: fileexst.c
42
fileexst.obj: fileexst.c
40
	wcc $(CFLAGS) fileexst.c
43
	wcc $(CFLAGS) fileexst.c
41
 
44
 
42
helpers.obj: helpers.c
45
helpers.obj: helpers.c
43
	wcc $(CFLAGS) helpers.c
46
	wcc $(CFLAGS) helpers.c
44
 
47
 
45
inf.obj: inf.c
48
inf.obj: inf.c
46
	wcc $(CFLAGS) inf.c
49
	wcc $(CFLAGS) inf.c
47
 
50
 
48
kprintf.obj: kprintf.c
51
kprintf.obj: kprintf.c
49
	wcc $(CFLAGS) kprintf.c
52
	wcc $(CFLAGS) kprintf.c
50
 
53
 
51
libunzip.obj: libunzip.c
54
libunzip.obj: libunzip.c
52
	wcc $(CFLAGS) libunzip.c
55
	wcc $(CFLAGS) libunzip.c
53
 
56
 
54
loadconf.obj: loadconf.c
57
loadconf.obj: loadconf.c
55
	wcc $(CFLAGS) loadconf.c
58
	wcc $(CFLAGS) loadconf.c
56
 
59
 
57
lsm.obj: lsm.c
60
lsm.obj: lsm.c
58
	wcc $(CFLAGS) lsm.c
61
	wcc $(CFLAGS) lsm.c
59
 
62
 
60
pkginst.obj: pkginst.c
63
pkginst.obj: pkginst.c
61
	wcc $(CFLAGS) pkginst.c
64
	wcc $(CFLAGS) pkginst.c
62
 
65
 
63
pkgrem.obj: pkgrem.c
66
pkgrem.obj: pkgrem.c
64
	wcc $(CFLAGS) pkgrem.c
67
	wcc $(CFLAGS) pkgrem.c
65
 
68
 
66
trim.obj: trim.c
69
trim.obj: trim.c
67
	wcc $(CFLAGS) trim.c
70
	wcc $(CFLAGS) trim.c
68
 
71
 
69
showinst.obj: showinst.c
72
showinst.obj: showinst.c
70
	wcc $(CFLAGS) showinst.c
73
	wcc $(CFLAGS) showinst.c
71
 
74
 
72
unzip.obj: unzip.c
75
unzip.obj: unzip.c
73
	wcc $(CFLAGS) unzip.c
76
	wcc $(CFLAGS) unzip.c
74
 
77
 
75
clean: .symbolic
78
clean: .symbolic
76
	del *.obj
79
	del *.obj
77
	del pkg.exe
80
	del pkg.exe
78
 
81