Subversion Repositories SvarDOS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
207 mateuszvis 1
#
2
# Makefile for DOS 16-bit (OpenWatcom 1.9)
3
#
4
 
210 mateuszvis 5
CFLAGS = -j -ml -0 -bt=dos -wx -we -d0 -ox -dNOLFN -i=watt32\inc
207 mateuszvis 6
LIB = watt32\lib\wattcpwl.lib
7
 
8
all: pkgnet.exe
9
 
278 mateuszvis 10
release: pkgnet.exe .symbolic
11
	mkdir bin
12
	mkdir appinfo
13
	copy pkgnet.exe bin
14
	copy pkgnet.lsm appinfo
558 mateuszvis 15
	zip -9 -k -r -m pkgnet.zip bin appinfo
278 mateuszvis 16
 
344 mateuszvis 17
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj
18
	wcl -lr -k4096 $(LIB) pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
207 mateuszvis 19
 
20
pkgnet.obj: pkgnet.c
210 mateuszvis 21
	*wcc $(CFLAGS) pkgnet.c
207 mateuszvis 22
 
344 mateuszvis 23
trim.obj: ..\pkg\trim.c
24
	*wcc $(CFLAGS) ..\pkg\trim.c
25
 
26
lsm.obj: ..\pkg\lsm.c
27
	*wcc $(CFLAGS) ..\pkg\lsm.c
28
 
29
helpers.obj: ..\pkg\helpers.c
30
	*wcc $(CFLAGS) ..\pkg\helpers.c
31
 
207 mateuszvis 32
net.obj: net.c
33
	*wcc $(CFLAGS) net.c
34
 
339 mateuszvis 35
unchunk.obj: unchunk.c
36
	*wcc $(CFLAGS) unchunk.c
37
 
38
unchtest.obj: unchtest.c
39
	*wcc $(CFLAGS) unchtest.c
40
 
41
unchtest.exe: unchtest.obj unchunk.obj
42
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
43
 
207 mateuszvis 44
clean: .symbolic
45
	del *.obj
46
	del pkgnet.exe