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 -DWIN32
22 LIBTARGET=..\..\lib\zlib.lib
25 OBJECTS=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) &
26 trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) &
27 infutil$(O) inffast$(O)
33 adler32.obj: adler32.c zutil.h zlib.h zconf.h
36 compress.obj: compress.c zlib.h zconf.h
39 crc32.obj: crc32.c zutil.h zlib.h zconf.h
42 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
45 gzio.obj: gzio.c zutil.h zlib.h zconf.h
48 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h &
52 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h &
56 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
59 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
62 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
65 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
68 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
71 uncompr.obj: uncompr.c zlib.h zconf.h
74 zutil.obj: zutil.c zutil.h zlib.h zconf.h
77 example.obj: example.c zlib.h zconf.h
80 minigzip.obj: minigzip.c zlib.h zconf.h
83 $(LIBTARGET) : $(OBJECTS)
85 @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
86 wlib /b /c /n /p=512 $^@ @tmp.lbc
89 example.exe: example.obj $(LIBTARGET)
90 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
92 minigzip.exe: minigzip.obj $(LIBTARGET)
93 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
95 test: minigzip.exe example.exe
97 echo hello world | minigzip | minigzip -d >test