Subversion Repositories SvarDOS

Rev

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

Rev 712 Rev 713
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
	copy pkgnet.exe bin
15
	copy pkgnet.exe bin
15
	copy pkgnet.lsm appinfo
16
	copy pkgnet.lsm appinfo
16
	copy pkgnet.lng nls
17
	copy pkgnet.lng nls
17
	if exist pkgnet.svp del pkgnet.svp
18
	if exist pkgnet.svp del pkgnet.svp
18
	zip -9krDX -m pkgnet.svp bin appinfo nls
19
	zip -9krDX -m pkgnet.svp bin appinfo nls
19
	rmdir bin
20
	rmdir bin
20
	rmdir appinfo
21
	rmdir appinfo
21
	rmdir nls
22
	rmdir nls
22
	if exist pkgnet.zip del pkgnet.zip
23
	if exist pkgnet.zip del pkgnet.zip
23
	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
24
 
25
 
25
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
26
	cd nls
27
	cd nls
27
	utf8tocp 437 en_utf8.txt > en.txt
28
	utf8tocp 437 en_utf8.txt > en.txt
28
	utf8tocp maz pl_utf8.txt > pl.txt
29
	utf8tocp maz pl_utf8.txt > pl.txt
29
	..\svarlang.lib\tlumacz en pl
30
	..\svarlang.lib\tlumacz en pl
30
	del ??.txt
31
	del ??.txt
31
	move /y deflang.c ..\deflang.c
32
	move /y deflang.c ..\deflang.c
32
	move /y out.lng ..\pkgnet.lng
33
	move /y out.lng ..\pkgnet.lng
33
	cd ..
34
	cd ..
34
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
35
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
35
 
36
 
36
pkgnet.obj: pkgnet.c
37
pkgnet.obj: pkgnet.c
37
	*wcc $(CFLAGS) pkgnet.c
38
	*wcc $(CFLAGS) pkgnet.c
38
 
39
 
39
trim.obj: ..\..\pkg\trunk\trim.c
40
trim.obj: ..\..\pkg\trunk\trim.c
40
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
41
	*wcc $(CFLAGS) ..\..\pkg\trunk\trim.c
41
 
42
 
42
lsm.obj: ..\..\pkg\trunk\lsm.c
43
lsm.obj: ..\..\pkg\trunk\lsm.c
43
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
44
	*wcc $(CFLAGS) ..\..\pkg\trunk\lsm.c
44
 
45
 
45
helpers.obj: ..\..\pkg\trunk\helpers.c
46
helpers.obj: ..\..\pkg\trunk\helpers.c
46
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
47
	*wcc $(CFLAGS) ..\..\pkg\trunk\helpers.c
47
 
48
 
48
net.obj: net.c
49
net.obj: net.c
49
	*wcc $(CFLAGS) net.c
50
	*wcc $(CFLAGS) net.c
50
 
51
 
51
unchunk.obj: unchunk.c
52
unchunk.obj: unchunk.c
52
	*wcc $(CFLAGS) unchunk.c
53
	*wcc $(CFLAGS) unchunk.c
53
 
54
 
54
unchtest.obj: unchtest.c
55
unchtest.obj: unchtest.c
55
	*wcc $(CFLAGS) unchtest.c
56
	*wcc $(CFLAGS) unchtest.c
56
 
57
 
57
unchtest.exe: unchtest.obj unchunk.obj
58
unchtest.exe: unchtest.obj unchunk.obj
58
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
59
	wcl -lr $(LIB) unchtest.obj unchunk.obj -fe=unchtest.exe
59
 
60
 
60
clean: .symbolic
61
clean: .symbolic
61
	del *.obj
62
	del *.obj
62
	del pkgnet.exe
63
	del pkgnet.exe
63
 
64