Subversion Repositories SvarDOS

Rev

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