Subversion Repositories SvarDOS

Rev

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