Subversion Repositories SvarDOS

Rev

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