Subversion Repositories SvarDOS

Rev

Rev 2233 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2233 Rev 2237
Line 2... Line 2...
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__
5
!ifdef __UNIX__
6
SEP=/
6
SEP=/
-
 
7
CP = cp
7
MV = mv
8
MV = mv
8
!else
9
!else
9
SEP=\
10
SEP=\
-
 
11
CP = copy
10
MV = move /Y
12
MV = move /Y
11
!endif
13
!endif
12
 
14
 
13
TLUMACZ = ..$(SEP)svarlang.lib$(SEP)tlumacz.exe
15
TLUMACZ = ..$(SEP)svarlang.lib$(SEP)tlumacz.exe
14
 
16
 
Line 18... Line 20...
18
all: pkgnet.exe
20
all: pkgnet.exe
19
 
21
 
20
release: pkgnet.exe .symbolic
22
release: pkgnet.exe .symbolic
21
	mkdir bin
23
	mkdir bin
22
	mkdir appinfo
24
	mkdir appinfo
23
	copy pkgnet.exe bin
25
	$(CP) pkgnet.exe bin
24
	copy pkgnet.lng bin
26
	$(CP) pkgnet.lng bin
25
	copy pkgnet.lsm appinfo
27
	$(CP) pkgnet.lsm appinfo
26
	if exist pkgnet.svp del pkgnet.svp
28
	rm -f pkgnet.svp
27
	zip -9krDX -m pkgnet.svp bin appinfo
29
	zip -9krDX -m pkgnet.svp bin appinfo
28
	rmdir bin
30
	rmdir bin
29
	rmdir appinfo
31
	rmdir appinfo
30
	if exist pkgnet.zip del pkgnet.zip
32
	rm -f pkgnet.zip
31
	zip -9krDX pkgnet.zip Makefile *.c *.h nls_utf8 pkgnet.lsm watt32 svarlang.lib
33
	zip -9krDX pkgnet.zip Makefile *.c *.h nls_utf8 pkgnet.lsm watt32 svarlang.lib
32
 
34
 
33
deflang.c:
35
deflang.obj:
34
	cd nls_utf8
36
	cd nls_utf8
35
	rm -f ??.txt
37
	rm -f ??.txt
36
	utf8tocp 850 br_utf8.txt br.txt
38
	utf8tocp 850 br_utf8.txt br.txt
37
	utf8tocp 850 de_utf8.txt de.txt
39
	utf8tocp 850 de_utf8.txt de.txt
38
	utf8tocp 437 en_utf8.txt en.txt
40
	utf8tocp 437 en_utf8.txt en.txt
Line 42... Line 44...
42
	$(TLUMACZ) en br de fr pl tr
44
	$(TLUMACZ) en br de fr pl tr
43
	rm -f ??.txt
45
	rm -f ??.txt
44
	$(MV) deflang.c ..$(SEP)deflang.c
46
	$(MV) deflang.c ..$(SEP)deflang.c
45
	$(MV) out.lng ..$(SEP)pkgnet.lng
47
	$(MV) out.lng ..$(SEP)pkgnet.lng
46
	cd ..
48
	cd ..
-
 
49
	wcc $(CFLAGS) -fo=deflang.obj deflang.c
47
 
50
 
48
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj deflang.c
51
pkgnet.exe: pkgnet.obj net.obj unchunk.obj lsm.obj helpers.obj trim.obj deflang.obj
49
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
52
	*wcl -lr -k4096 $(LIB) pkgnet.obj deflang.c net.obj unchunk.obj lsm.obj helpers.obj trim.obj -fe=pkgnet.exe
50
	upx --8086 --best pkgnet.exe
53
	upx --8086 --best pkgnet.exe
51
 
54
 
52
pkgnet.obj: pkgnet.c
55
pkgnet.obj: pkgnet.c
53
	*wcc $(CFLAGS) -fo=$*.obj $[@
56
	*wcc $(CFLAGS) -fo=$*.obj $[@
Line 76... Line 79...
76
clean: .symbolic
79
clean: .symbolic
77
	rm -f *.obj
80
	rm -f *.obj
78
	rm -f deflang.*
81
	rm -f deflang.*
79
	rm -f pkgnet.exe
82
	rm -f pkgnet.exe
80
	rm -f pkgnet.lng
83
	rm -f pkgnet.lng
-
 
84
	rm -f pkgnet.svp
-
 
85
	rm -f pkgnet.zip
-
 
86