Subversion Repositories SvarDOS

Rev

Rev 271 | 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
25
	zip -9 -m -o -r pkg.zip appinfo bin nls
26
 
268 mateuszvis 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
221 mateuszvis 28
	wcl $(LDFLAGS) $(LIBS) *.obj
29
 
244 mateuszvis 30
kitten.obj: kitten\kitten.c
31
	wcc $(CFLAGS) kitten\kitten.c
32
 
221 mateuszvis 33
main.obj: main.c
34
	wcc $(CFLAGS) main.c
35
 
36
crc32.obj: crc32.c
37
	wcc $(CFLAGS) crc32.c
38
 
39
fileexst.obj: fileexst.c
40
	wcc $(CFLAGS) fileexst.c
41
 
42
helpers.obj: helpers.c
43
	wcc $(CFLAGS) helpers.c
44
 
45
inf.obj: inf.c
46
	wcc $(CFLAGS) inf.c
47
 
48
kprintf.obj: kprintf.c
49
	wcc $(CFLAGS) kprintf.c
50
 
51
libunzip.obj: libunzip.c
52
	wcc $(CFLAGS) libunzip.c
53
 
54
loadconf.obj: loadconf.c
55
	wcc $(CFLAGS) loadconf.c
56
 
57
lsm.obj: lsm.c
58
	wcc $(CFLAGS) lsm.c
59
 
60
pkginst.obj: pkginst.c
61
	wcc $(CFLAGS) pkginst.c
62
 
63
pkgrem.obj: pkgrem.c
64
	wcc $(CFLAGS) pkgrem.c
65
 
256 mateuszvis 66
trim.obj: trim.c
67
	wcc $(CFLAGS) trim.c
221 mateuszvis 68
 
69
showinst.obj: showinst.c
70
	wcc $(CFLAGS) showinst.c
71
 
72
clean: .symbolic
73
	del *.obj
268 mateuszvis 74
	del pkg.exe