4 # This version of the zlib makefile was adapted by Chris Young for use
5 # with Borland C 4.5x with the Dos Power Pack for a 32-bit protected mode
6 # flat memory model. It was created for use with POV-Ray ray tracer and
7 # you may choose to edit the CFLAGS to suit your needs but the
8 # switches -WX and -DMSDOS are required.
9 # -- Chris Young 76702.1655@compuserve.com
11 # To use, do "make -fmakefile.b32"
13 # See zconf.h for details about the memory requirements.
15 # ------------- Borland C++ -------------
17 CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS
24 LIBTARGET=..\..\lib\zlib.lib
27 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
29 OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
31 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
32 infutil$(O) inffast$(O)
33 OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
34 infutil$(O)+inffast$(O)
38 adler32.obj: adler32.c zutil.h zlib.h zconf.h
39 $(CC) -c $(CFLAGS) $*.c
41 compress.obj: compress.c zlib.h zconf.h
42 $(CC) -c $(CFLAGS) $*.c
44 crc32.obj: crc32.c zutil.h zlib.h zconf.h
45 $(CC) -c $(CFLAGS) $*.c
47 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
48 $(CC) -c $(CFLAGS) $*.c
50 gzio.obj: gzio.c zutil.h zlib.h zconf.h
51 $(CC) -c $(CFLAGS) $*.c
53 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
55 $(CC) -c $(CFLAGS) $*.c
57 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
59 $(CC) -c $(CFLAGS) $*.c
61 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
62 $(CC) -c $(CFLAGS) $*.c
64 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
65 $(CC) -c $(CFLAGS) $*.c
67 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
68 $(CC) -c $(CFLAGS) $*.c
70 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
71 $(CC) -c $(CFLAGS) $*.c
73 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
74 $(CC) -c $(CFLAGS) $*.c
76 uncompr.obj: uncompr.c zlib.h zconf.h
77 $(CC) -c $(CFLAGS) $*.c
79 zutil.obj: zutil.c zutil.h zlib.h zconf.h
80 $(CC) -c $(CFLAGS) $*.c
82 example.obj: example.c zlib.h zconf.h
83 $(CC) -c $(CFLAGS) $*.c
85 minigzip.obj: minigzip.c zlib.h zconf.h
86 $(CC) -c $(CFLAGS) $*.c
88 # we must cut the command line to fit in the MS/DOS 128 byte limit:
89 $(LIBTARGET: $(OBJ1) $(OBJ2)
91 $(LIB) $(LIBTARGET) +$(OBJP1)
92 $(LIB) $(LIBTARGET) +$(OBJP2)
94 example.exe: example.obj $(LIBTARGET)
95 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
97 minigzip.exe: minigzip.obj $(LIBTARGET)
98 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
100 test: example.exe minigzip.exe
102 echo hello world | minigzip | minigzip -d