Subversion Repositories SvarDOS

Rev

Rev 1689 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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