4 # This version of the zlib makefile was adapted by Chris Young for use
5 # with Watcom 10a 32-bit protected mode flat memory model. It was created
6 # for use with POV-Ray ray tracer and you may choose to edit the CFLAGS to
7 # suit your needs but the -DMSDOS is required.
8 # -- Chris Young 76702.1655@compuserve.com
10 # To use, do "wmake -f makefile.wat"
12 # See zconf.h for details about the memory requirements.
14 # ------------- Watcom 10a -------------
16 CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DMSDOS
22 LIBTARGET=..\..\lib\zlib.lib
25 OBJ1=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O)
26 OBJ2=trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O)
27 OBJ3=infutil$(O) inffast$(O)
28 OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)
29 OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)
30 OBJP3=infutil$(O)+inffast$(O)
34 adler32.obj: adler32.c zutil.h zlib.h zconf.h
37 compress.obj: compress.c zlib.h zconf.h
40 crc32.obj: crc32.c zutil.h zlib.h zconf.h
43 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
46 gzio.obj: gzio.c zutil.h zlib.h zconf.h
49 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h &
53 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h &
57 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
60 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
63 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
66 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
69 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
72 uncompr.obj: uncompr.c zlib.h zconf.h
75 zutil.obj: zutil.c zutil.h zlib.h zconf.h
78 example.obj: example.c zlib.h zconf.h
81 minigzip.obj: minigzip.c zlib.h zconf.h
84 # we must cut the command line to fit in the MS/DOS 128 byte limit:
85 $(LIBTARGET): $(OBJ1) $(OBJ2) $(OBJ3)
87 $(LIB) $(LIBTARGET) +$(OBJP1)
88 $(LIB) $(LIBTARGET) +$(OBJP2)
89 $(LIB) $(LIBTARGET) +$(OBJP3)
91 example.exe: example.obj $(LIBTARGET)
92 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
94 minigzip.exe: minigzip.obj $(LIBTARGET)
95 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
97 test: minigzip.exe example.exe
99 echo hello world | minigzip | minigzip -d >test