aboutsummaryrefslogtreecommitdiff
path: root/watcom
diff options
context:
space:
mode:
Diffstat (limited to 'watcom')
-rw-r--r--watcom/watcom_f.mak40
-rw-r--r--watcom/watcom_l.mak40
2 files changed, 80 insertions, 0 deletions
diff --git a/watcom/watcom_f.mak b/watcom/watcom_f.mak
new file mode 100644
index 0000000..a52229a
--- /dev/null
+++ b/watcom/watcom_f.mak
@@ -0,0 +1,40 @@
1# Makefile for zlib
2# OpenWatcom flat model
3# Last updated: 28-Dec-2005
4
5# To use, do "wmake -f watcom_f.mak"
6
7C_SOURCE = adler32.c compress.c crc32.c deflate.c &
8 gzio.c infback.c inffast.c inflate.c &
9 inftrees.c trees.c uncompr.c zutil.c
10
11OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
12 gzio.obj infback.obj inffast.obj inflate.obj &
13 inftrees.obj trees.obj uncompr.obj zutil.obj
14
15CC = wcc386
16LINKER = wcl386
17CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx
18ZLIB_LIB = zlib_f.lib
19
20.C.OBJ:
21 $(CC) $(CFLAGS) $[@
22
23all: $(ZLIB_LIB) example.exe minigzip.exe
24
25$(ZLIB_LIB): $(OBJS)
26 wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
27 wlib -b -c $(ZLIB_LIB) -+deflate.obj -+gzio.obj -+infback.obj
28 wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj
29 wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj
30
31example.exe: $(ZLIB_LIB) example.obj
32 $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB)
33
34minigzip.exe: $(ZLIB_LIB) minigzip.obj
35 $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
36
37clean: .SYMBOLIC
38 del *.obj
39 del $(ZLIB_LIB)
40 @echo Cleaning done
diff --git a/watcom/watcom_l.mak b/watcom/watcom_l.mak
new file mode 100644
index 0000000..bf03edd
--- /dev/null
+++ b/watcom/watcom_l.mak
@@ -0,0 +1,40 @@
1# Makefile for zlib
2# OpenWatcom large model
3# Last updated: 28-Dec-2005
4
5# To use, do "wmake -f watcom_l.mak"
6
7C_SOURCE = adler32.c compress.c crc32.c deflate.c &
8 gzio.c infback.c inffast.c inflate.c &
9 inftrees.c trees.c uncompr.c zutil.c
10
11OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
12 gzio.obj infback.obj inffast.obj inflate.obj &
13 inftrees.obj trees.obj uncompr.obj zutil.obj
14
15CC = wcc
16LINKER = wcl
17CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx
18ZLIB_LIB = zlib_l.lib
19
20.C.OBJ:
21 $(CC) $(CFLAGS) $[@
22
23all: $(ZLIB_LIB) example.exe minigzip.exe
24
25$(ZLIB_LIB): $(OBJS)
26 wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
27 wlib -b -c $(ZLIB_LIB) -+deflate.obj -+gzio.obj -+infback.obj
28 wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj
29 wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj
30
31example.exe: $(ZLIB_LIB) example.obj
32 $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB)
33
34minigzip.exe: $(ZLIB_LIB) minigzip.obj
35 $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
36
37clean: .SYMBOLIC
38 del *.obj
39 del $(ZLIB_LIB)
40 @echo Cleaning done