aboutsummaryrefslogtreecommitdiff
path: root/zlib/watcom/watcom_f.mak
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-03-13 10:40:33 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-03-26 08:25:29 -0700
commit5ca28f792883afb409ae145666fc3662c3a3aed5 (patch)
treec7e7f508b52bdf5c6a1162cd30241275bbb89fd2 /zlib/watcom/watcom_f.mak
parentb19a8f8545100a08ee2a64c05631aff6f651faa1 (diff)
downloadgdb-5ca28f792883afb409ae145666fc3662c3a3aed5.zip
gdb-5ca28f792883afb409ae145666fc3662c3a3aed5.tar.gz
gdb-5ca28f792883afb409ae145666fc3662c3a3aed5.tar.bz2
Import zlib from GCC
Diffstat (limited to 'zlib/watcom/watcom_f.mak')
-rw-r--r--zlib/watcom/watcom_f.mak43
1 files changed, 43 insertions, 0 deletions
diff --git a/zlib/watcom/watcom_f.mak b/zlib/watcom/watcom_f.mak
new file mode 100644
index 0000000..37f4d74
--- /dev/null
+++ b/zlib/watcom/watcom_f.mak
@@ -0,0 +1,43 @@
+# Makefile for zlib
+# OpenWatcom flat model
+# Last updated: 28-Dec-2005
+
+# To use, do "wmake -f watcom_f.mak"
+
+C_SOURCE = adler32.c compress.c crc32.c deflate.c &
+ gzclose.c gzlib.c gzread.c gzwrite.c &
+ infback.c inffast.c inflate.c inftrees.c &
+ trees.c uncompr.c zutil.c
+
+OBJS = adler32.obj compress.obj crc32.obj deflate.obj &
+ gzclose.obj gzlib.obj gzread.obj gzwrite.obj &
+ infback.obj inffast.obj inflate.obj inftrees.obj &
+ trees.obj uncompr.obj zutil.obj
+
+CC = wcc386
+LINKER = wcl386
+CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx
+ZLIB_LIB = zlib_f.lib
+
+.C.OBJ:
+ $(CC) $(CFLAGS) $[@
+
+all: $(ZLIB_LIB) example.exe minigzip.exe
+
+$(ZLIB_LIB): $(OBJS)
+ wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj
+ wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj
+ wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj
+ wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj
+ wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj
+
+example.exe: $(ZLIB_LIB) example.obj
+ $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB)
+
+minigzip.exe: $(ZLIB_LIB) minigzip.obj
+ $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB)
+
+clean: .SYMBOLIC
+ del *.obj
+ del $(ZLIB_LIB)
+ @echo Cleaning done