Subversion Repositories SvarDOS

Rev

Rev 269 | 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
 
268 mateuszvis 12
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 13
	wcl $(LDFLAGS) $(LIBS) *.obj
271 mateuszvis 14
	upx --8086 -9 pkg.exe
221 mateuszvis 15
 
244 mateuszvis 16
kitten.obj: kitten\kitten.c
17
	wcc $(CFLAGS) kitten\kitten.c
18
 
221 mateuszvis 19
main.obj: main.c
20
	wcc $(CFLAGS) main.c
21
 
22
crc32.obj: crc32.c
23
	wcc $(CFLAGS) crc32.c
24
 
25
fileexst.obj: fileexst.c
26
	wcc $(CFLAGS) fileexst.c
27
 
28
helpers.obj: helpers.c
29
	wcc $(CFLAGS) helpers.c
30
 
31
inf.obj: inf.c
32
	wcc $(CFLAGS) inf.c
33
 
34
kprintf.obj: kprintf.c
35
	wcc $(CFLAGS) kprintf.c
36
 
37
libunzip.obj: libunzip.c
38
	wcc $(CFLAGS) libunzip.c
39
 
40
loadconf.obj: loadconf.c
41
	wcc $(CFLAGS) loadconf.c
42
 
43
lsm.obj: lsm.c
44
	wcc $(CFLAGS) lsm.c
45
 
46
pkginst.obj: pkginst.c
47
	wcc $(CFLAGS) pkginst.c
48
 
49
pkgrem.obj: pkgrem.c
50
	wcc $(CFLAGS) pkgrem.c
51
 
256 mateuszvis 52
trim.obj: trim.c
53
	wcc $(CFLAGS) trim.c
221 mateuszvis 54
 
55
showinst.obj: showinst.c
56
	wcc $(CFLAGS) showinst.c
57
 
58
clean: .symbolic
59
	del *.obj
268 mateuszvis 60
	del pkg.exe