Subversion Repositories SvarDOS

Rev

Rev 714 | Rev 724 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 714 Rev 721
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
CFLAGS = -j -ml -0 -bt=dos -wx -we -d0 -ox -dNOLFN -i=watt32\inc
5
CFLAGS = -j -ml -0 -bt=dos -wx -we -d0 -ox -dNOLFN -i=watt32\inc
6
LIB = watt32\lib\wattcpwl.lib svarlang.lib\svarlngl.lib
6
LIB = watt32\lib\wattcpwl.lib svarlang.lib\svarlngl.lib
7
 
7
 
8
all: pkgnet.exe
8
all: pkgnet.exe
9
 
9
 
10
release: pkgnet.exe .symbolic
10
release: pkgnet.exe .symbolic
11
	mkdir bin
11
	mkdir bin
12
	mkdir appinfo
12
	mkdir appinfo
13
	mkdir nls
13
	mkdir nls
14
	upx --8086 -9 pkgnet.exe
14
	upx --8086 -9 pkgnet.exe
15
	copy pkgnet.exe bin
15
	copy pkgnet.exe bin
16
	copy pkgnet.lsm appinfo
16
	copy pkgnet.lsm appinfo
17
	copy pkgnet.lng nls
17
	copy pkgnet.lng nls
18
	if exist pkgnet.svp del pkgnet.svp
18
	if exist pkgnet.svp del pkgnet.svp
19
	zip -9krDX -m pkgnet.svp bin appinfo nls
19
	zip -9krDX -m pkgnet.svp bin appinfo nls
20
	rmdir bin
20
	rmdir bin
21
	rmdir appinfo
21
	rmdir appinfo
22
	rmdir nls
22
	rmdir nls
23
	if exist pkgnet.zip del pkgnet.zip
23
	if exist pkgnet.zip del pkgnet.zip
24
	zip -9krDX pkgnet.zip Makefile *.c *.h pkgnet.lsm watt32 svarlang.lib
24
	zip -9krDX pkgnet.zip Makefile *.c *.h pkgnet.lsm watt32 svarlang.lib
25
 
25
 
26
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj
26
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj
27
	cd nls_utf8
27
	cd nls_utf8
-
 
28
	utf8tocp 850 de_utf8.txt > de.txt
28
	utf8tocp 437 en_utf8.txt > en.txt
29
	utf8tocp 437 en_utf8.txt > en.txt
29
	utf8tocp maz pl_utf8.txt > pl.txt
30
	utf8tocp maz pl_utf8.txt > pl.txt
30
	..\svarlang.lib\tlumacz en pl
31
	..\svarlang.lib\tlumacz en de pl
31
	del ??.txt
32
	del ??.txt
32
	move /y deflang.c ..\deflang.c
33
	move /y deflang.c ..\deflang.c
33
	move /y out.lng ..\pkgnet.lng
34
	move /y out.lng ..\pkgnet.lng
34
	cd ..
35
	cd ..
35
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
36
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
36
 
37
 
37
pkgnet.obj: pkgnet.c
38
pkgnet.obj: pkgnet.c
38
	*wcc $(CFLAGS) pkgnet.c
39
	*wcc $(CFLAGS) pkgnet.c
39
 
40
 
40
trim.obj: ..\..\pkg\trunk\trim.c
41
trim.obj: ..\..\pkg\trunk\trim.c
41
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
42
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
42
 
43
 
43
lsm.obj: ..\..\pkg\trunk\lsm.c
44
lsm.obj: ..\..\pkg\trunk\lsm.c
44
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
45
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
45
 
46
 
46
helpers.obj: ..\..\pkg\trunk\helpers.c
47
helpers.obj: ..\..\pkg\trunk\helpers.c
47
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
48
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
48
 
49
 
49
net.obj: net.c
50
net.obj: net.c
50
	*wcc $(CFLAGS) net.c
51
	*wcc $(CFLAGS) net.c
51
 
52
 
52
unchunk.obj: unchunk.c
53
unchunk.obj: unchunk.c
53
	*wcc $(CFLAGS) unchunk.c
54
	*wcc $(CFLAGS) unchunk.c
54
 
55
 
55
unchtest.obj: unchtest.c
56
unchtest.obj: unchtest.c
56
	*wcc $(CFLAGS) unchtest.c
57
	*wcc $(CFLAGS) unchtest.c
57
 
58
 
58
unchtest.exe: unchtest.obj unchunk.obj
59
unchtest.exe: unchtest.obj unchunk.obj
59
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
60
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
60
 
61
 
61
clean: .symbolic
62
clean: .symbolic
62
	del *.obj
63
	del *.obj
63
	del pkgnet.exe
64
	del pkgnet.exe
64
 
65