Subversion Repositories SvarDOS

Rev

Rev 1185 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1185 Rev 1186
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 nls_utf8 pkgnet.lsm watt32 svarlang.lib
24
	zip -9krDX pkgnet.zip Makefile *.c *.h nls_utf8 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 850 de_utf8.txt > de.txt
29
	utf8tocp 850 br_utf8.txt > br.txt
29
	utf8tocp 850 br_utf8.txt > br.txt
30
	utf8tocp 437 en_utf8.txt > en.txt
30
	utf8tocp 437 en_utf8.txt > en.txt
31
	utf8tocp maz pl_utf8.txt > pl.txt
31
	utf8tocp maz pl_utf8.txt > pl.txt
32
	..\svarlang.lib\tlumacz en br de pl > tlumacz.log
32
	..\svarlang.lib\tlumacz en br de pl > tlumacz.log
33
	del ??.txt
33
	del ??.txt
34
	move /y deflang.c ..\deflang.c
34
	move /y deflang.c ..\deflang.c
35
	move /y out.lng ..\pkgnet.lng
35
	move /y out.lng ..\pkgnet.lng
36
	cd ..
36
	cd ..
37
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
37
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
38
 
38
 
39
pkgnet.obj: pkgnet.c
39
pkgnet.obj: pkgnet.c
40
	*wcc $(CFLAGS) pkgnet.c
40
	*wcc $(CFLAGS) pkgnet.c
41
 
41
 
42
trim.obj: ..\..\pkg\trunk\trim.c
42
trim.obj: ..\..\pkg\trunk\trim.c
43
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
43
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
44
 
44
 
45
lsm.obj: ..\..\pkg\trunk\lsm.c
45
lsm.obj: ..\..\pkg\trunk\lsm.c
46
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
46
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
47
 
47
 
48
helpers.obj: ..\..\pkg\trunk\helpers.c
48
helpers.obj: ..\..\pkg\trunk\helpers.c
49
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
49
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
50
 
50
 
51
net.obj: net.c
51
net.obj: net.c
52
	*wcc $(CFLAGS) net.c
52
	*wcc $(CFLAGS) net.c
53
 
53
 
54
unchunk.obj: unchunk.c
54
unchunk.obj: unchunk.c
55
	*wcc $(CFLAGS) unchunk.c
55
	*wcc $(CFLAGS) unchunk.c
56
 
56
 
57
unchtest.obj: unchtest.c
57
unchtest.obj: unchtest.c
58
	*wcc $(CFLAGS) unchtest.c
58
	*wcc $(CFLAGS) unchtest.c
59
 
59
 
60
unchtest.exe: unchtest.obj unchunk.obj
60
unchtest.exe: unchtest.obj unchunk.obj
61
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
61
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
62
 
62
 
63
clean: .symbolic
63
clean: .symbolic
64
	del *.obj
64
	del *.obj
65
	del pkgnet.exe
65
	del pkgnet.exe
66
 
66