Subversion Repositories SvarDOS

Rev

Rev 1689 | 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
 
2233 bernd.boec 5
!ifdef __UNIX__
6
SEP=/
7
MV = mv
8
!else
9
SEP=\
10
MV = move /Y
11
!endif
207 mateuszvis 12
 
2233 bernd.boec 13
TLUMACZ = ..$(SEP)svarlang.lib$(SEP)tlumacz.exe
14
 
15
CFLAGS = -q -j -ml -0 -bt=dos -wx -we -d0 -ox -dNOLFN -i=watt32$(SEP)inc
16
LIB = watt32/lib/wattcpwl.lib svarlang.lib/svarlngl.lib
17
 
207 mateuszvis 18
all: pkgnet.exe
19
 
278 mateuszvis 20
release: pkgnet.exe .symbolic
21
	mkdir bin
22
	mkdir appinfo
23
	copy pkgnet.exe bin
1503 mateusz.vi 24
	copy pkgnet.lng bin
278 mateuszvis 25
	copy pkgnet.lsm appinfo
712 mateusz.vi 26
	if exist pkgnet.svp del pkgnet.svp
1503 mateusz.vi 27
	zip -9krDX -m pkgnet.svp bin appinfo
675 mateusz.vi 28
	rmdir bin
29
	rmdir appinfo
712 mateusz.vi 30
	if exist pkgnet.zip del pkgnet.zip
728 mateusz.vi 31
	zip -9krDX pkgnet.zip Makefile *.c *.h nls_utf8 pkgnet.lsm watt32 svarlang.lib
278 mateuszvis 32
 
2233 bernd.boec 33
deflang.c:
714 mateusz.vi 34
	cd nls_utf8
2233 bernd.boec 35
	rm -f ??.txt
36
	utf8tocp 850 br_utf8.txt br.txt
37
	utf8tocp 850 de_utf8.txt de.txt
38
	utf8tocp 437 en_utf8.txt en.txt
39
	utf8tocp 850 fr_utf8.txt fr.txt
40
	utf8tocp maz pl_utf8.txt pl.txt
41
	utf8tocp 857 tr_utf8.txt tr.txt
42
	$(TLUMACZ) en br de fr pl tr
43
	rm -f ??.txt
44
	$(MV) deflang.c ..$(SEP)deflang.c
45
	$(MV) out.lng ..$(SEP)pkgnet.lng
712 mateusz.vi 46
	cd ..
2233 bernd.boec 47
 
48
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj deflang.c
712 mateusz.vi 49
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
2233 bernd.boec 50
	upx --8086 --best pkgnet.exe
207 mateuszvis 51
 
52
pkgnet.obj: pkgnet.c
2233 bernd.boec 53
	*wcc $(CFLAGS) -fo=$*.obj $[@
207 mateuszvis 54
 
2233 bernd.boec 55
trim.obj: ../../pkg/trunk/trim.c
56
	*wcc $(CFLAGS) -fo=$*.obj $[@
344 mateuszvis 57
 
2233 bernd.boec 58
lsm.obj: ../../pkg/trunk/lsm.c
59
	*wcc $(CFLAGS) -fo=$*.obj $[@
344 mateuszvis 60
 
2233 bernd.boec 61
helpers.obj: ../../pkg/trunk/helpers.c
62
	*wcc $(CFLAGS) -fo=$*.obj $[@
344 mateuszvis 63
 
207 mateuszvis 64
net.obj: net.c
2233 bernd.boec 65
	*wcc $(CFLAGS) -fo=$*.obj $[@
207 mateuszvis 66
 
339 mateuszvis 67
unchunk.obj: unchunk.c
2233 bernd.boec 68
	*wcc $(CFLAGS) -fo=$*.obj $[@
339 mateuszvis 69
 
70
unchtest.obj: unchtest.c
2233 bernd.boec 71
	*wcc $(CFLAGS) -fo=$*.obj $[@
339 mateuszvis 72
 
73
unchtest.exe: unchtest.obj unchunk.obj
74
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
75
 
207 mateuszvis 76
clean: .symbolic
2233 bernd.boec 77
	rm -f *.obj
78
	rm -f deflang.*
79
	rm -f pkgnet.exe
80
	rm -f pkgnet.lng