Subversion Repositories SvarDOS

Rev

Rev 616 | Rev 675 | Go to most recent revision | Details | Compare with Previous | 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
633 mateusz.vi 15
	zip -9krDX -m pkgnet.zip bin appinfo
16
	zip -9krDX pkgnet.src Makefile *.c *.h pkgnet.lsm watt32
278 mateuszvis 17
 
344 mateuszvis 18
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj
19
	wcl -lr -k4096 $(LIB) pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
207 mateuszvis 20
 
21
pkgnet.obj: pkgnet.c
210 mateuszvis 22
	*wcc $(CFLAGS) pkgnet.c
207 mateuszvis 23
 
633 mateusz.vi 24
trim.obj: ..\..\pkg\trunk\trim.c
25
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
344 mateuszvis 26
 
633 mateusz.vi 27
lsm.obj: ..\..\pkg\trunk\lsm.c
28
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
344 mateuszvis 29
 
633 mateusz.vi 30
helpers.obj: ..\..\pkg\trunk\helpers.c
31
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
344 mateuszvis 32
 
207 mateuszvis 33
net.obj: net.c
34
	*wcc $(CFLAGS) net.c
35
 
339 mateuszvis 36
unchunk.obj: unchunk.c
37
	*wcc $(CFLAGS) unchunk.c
38
 
39
unchtest.obj: unchtest.c
40
	*wcc $(CFLAGS) unchtest.c
41
 
42
unchtest.exe: unchtest.obj unchunk.obj
43
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
44
 
207 mateuszvis 45
clean: .symbolic
46
	del *.obj
47
	del pkgnet.exe