Subversion Repositories SvarDOS

Rev

Rev 296 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
221 mateuszvis 1
#
268 mateuszvis 2
# pkg Makefile -- requires OpenWatcom (wmake)
221 mateuszvis 3
# Copyright (C) 2021 Mateusz Viste
4
#
5
 
266 mateuszvis 6
CFLAGS = -0 -mc -os -wx -we -d0 -i=zlib
268 mateuszvis 7
LDFLAGS = -lr -fe=pkg.exe
266 mateuszvis 8
LIBS = zlib\zlib_c.lib
221 mateuszvis 9
 
268 mateuszvis 10
all: pkg.exe
221 mateuszvis 11
 
275 mateuszvis 12
release: pkg.exe .symbolic
13
	mkdir appinfo
14
	mkdir bin
15
	mkdir nls
16
	copy nls_utf8\pkg_en.txt nls\pkg.en
17
	utf8tocp 850 nls_utf8\pkg_de.txt > nls\pkg.de
18
	utf8tocp 850 nls_utf8\pkg_fr.txt > nls\pkg.fr
19
	utf8tocp 850 nls_utf8\pkg_dk.txt > nls\pkg.dk
20
	utf8tocp 852 nls_utf8\pkg_si.txt > nls\pkg.si
21
	utf8tocp 857 nls_utf8\pkg_tr.txt > nls\pkg.tr
22
	utf8tocp maz nls_utf8\pkg_pl.txt > nls\pkg.pl
23
	upx --8086 -9 pkg.exe -o bin\pkg.exe
24
	copy pkg.lsm appinfo
302 mateuszvis 25
	zip -9moDkr pkg.zip appinfo bin nls
26
	rmdir appinfo
27
	rmdir bin
28
	rmdir nls
275 mateuszvis 29
 
296 mateuszvis 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
221 mateuszvis 31
	wcl $(LDFLAGS) $(LIBS) *.obj
32
 
244 mateuszvis 33
kitten.obj: kitten\kitten.c
34
	wcc $(CFLAGS) kitten\kitten.c
35
 
221 mateuszvis 36
main.obj: main.c
37
	wcc $(CFLAGS) main.c
38
 
39
crc32.obj: crc32.c
40
	wcc $(CFLAGS) crc32.c
41
 
42
fileexst.obj: fileexst.c
43
	wcc $(CFLAGS) fileexst.c
44
 
45
helpers.obj: helpers.c
46
	wcc $(CFLAGS) helpers.c
47
 
48
inf.obj: inf.c
49
	wcc $(CFLAGS) inf.c
50
 
51
kprintf.obj: kprintf.c
52
	wcc $(CFLAGS) kprintf.c
53
 
54
libunzip.obj: libunzip.c
55
	wcc $(CFLAGS) libunzip.c
56
 
57
loadconf.obj: loadconf.c
58
	wcc $(CFLAGS) loadconf.c
59
 
60
lsm.obj: lsm.c
61
	wcc $(CFLAGS) lsm.c
62
 
63
pkginst.obj: pkginst.c
64
	wcc $(CFLAGS) pkginst.c
65
 
66
pkgrem.obj: pkgrem.c
67
	wcc $(CFLAGS) pkgrem.c
68
 
256 mateuszvis 69
trim.obj: trim.c
70
	wcc $(CFLAGS) trim.c
221 mateuszvis 71
 
72
showinst.obj: showinst.c
73
	wcc $(CFLAGS) showinst.c
74
 
296 mateuszvis 75
unzip.obj: unzip.c
76
	wcc $(CFLAGS) unzip.c
77
 
221 mateuszvis 78
clean: .symbolic
79
	del *.obj
268 mateuszvis 80
	del pkg.exe