Subversion Repositories SvarDOS

Rev

Rev 675 | Rev 713 | 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
712 mateusz.vi 6
LIB = watt32\lib\wattcpwl.lib svarlang.lib\svarlngl.lib
207 mateuszvis 7
 
8
all: pkgnet.exe
9
 
278 mateuszvis 10
release: pkgnet.exe .symbolic
11
	mkdir bin
12
	mkdir appinfo
712 mateusz.vi 13
	mkdir nls
278 mateuszvis 14
	copy pkgnet.exe bin
15
	copy pkgnet.lsm appinfo
712 mateusz.vi 16
	copy pkgnet.lng nls
17
	if exist pkgnet.svp del pkgnet.svp
18
	zip -9krDX -m pkgnet.svp bin appinfo nls
675 mateusz.vi 19
	rmdir bin
20
	rmdir appinfo
712 mateusz.vi 21
	rmdir nls
22
	if exist pkgnet.zip del pkgnet.zip
23
	zip -9krDX pkgnet.zip Makefile *.c *.h pkgnet.lsm watt32 svarlang.lib
278 mateuszvis 24
 
344 mateuszvis 25
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj
712 mateusz.vi 26
	cd nls
27
	utf8tocp 437 en_utf8.txt > en.txt
28
	utf8tocp maz pl_utf8.txt > pl.txt
29
	..\svarlang.lib\tlumacz en pl
30
	del ??.txt
31
	move /y deflang.c ..\deflang.c
32
	move /y out.lng ..\pkgnet.lng
33
	cd ..
34
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
207 mateuszvis 35
 
36
pkgnet.obj: pkgnet.c
210 mateuszvis 37
	*wcc $(CFLAGS) pkgnet.c
207 mateuszvis 38
 
633 mateusz.vi 39
trim.obj: ..\..\pkg\trunk\trim.c
40
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
344 mateuszvis 41
 
633 mateusz.vi 42
lsm.obj: ..\..\pkg\trunk\lsm.c
43
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
344 mateuszvis 44
 
633 mateusz.vi 45
helpers.obj: ..\..\pkg\trunk\helpers.c
46
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
344 mateuszvis 47
 
207 mateuszvis 48
net.obj: net.c
49
	*wcc $(CFLAGS) net.c
50
 
339 mateuszvis 51
unchunk.obj: unchunk.c
52
	*wcc $(CFLAGS) unchunk.c
53
 
54
unchtest.obj: unchtest.c
55
	*wcc $(CFLAGS) unchtest.c
56
 
57
unchtest.exe: unchtest.obj unchunk.obj
58
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
59
 
207 mateuszvis 60
clean: .symbolic
61
	del *.obj
62
	del pkgnet.exe