2 # Borland C++ ************ UNTESTED ***********
4 # To use, do "make -fmakefile.bor"
6 # WARNING: the small model is supported but only for small values of
7 # MAX_WBITS and MAX_MEM_LEVEL. If you wish to reduce the memory
8 # requirements (default 256K for big objects plus a few K), you can add
9 # to CFLAGS below: -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
10 # See zconf.h for details about the memory requirements.
12 # ------------- Turbo C++, Borland C++ -------------
18 CFLAGS=/Od $(CRTFLAG) /GX
20 !else if "$(FINAL)" == "hybrid"
21 CFLAGS=/Od $(CRTFLAG) /GX
24 CFLAGS=-O2 $(CRTFLAG) /GX
28 !if "$(CRTFLAG)" == ""
36 # replace bcc with tcc for Turbo C++ 1.0
41 LIBTARGET=..\..\lib\zlib.lib
42 !else if "$(FINAL)" == "hybrid"
43 LIBTARGET=..\..\lib\zlibh.lib
45 LIBTARGET=..\..\lib\zlibd.lib
49 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
51 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
52 infutil$(O) inffast$(O)
56 adler32.obj: adler32.c zutil.h zlib.h zconf.h
57 $(CC) -c $(CFLAGS) $*.c
59 compress.obj: compress.c zlib.h zconf.h
60 $(CC) -c $(CFLAGS) $*.c
62 crc32.obj: crc32.c zutil.h zlib.h zconf.h
63 $(CC) -c $(CFLAGS) $*.c
65 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
66 $(CC) -c $(CFLAGS) $*.c
68 gzio.obj: gzio.c zutil.h zlib.h zconf.h
69 $(CC) -c $(CFLAGS) $*.c
71 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
73 $(CC) -c $(CFLAGS) $*.c
75 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
77 $(CC) -c $(CFLAGS) $*.c
79 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
80 $(CC) -c $(CFLAGS) $*.c
82 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
83 $(CC) -c $(CFLAGS) $*.c
85 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
86 $(CC) -c $(CFLAGS) $*.c
88 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
89 $(CC) -c $(CFLAGS) $*.c
91 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
92 $(CC) -c $(CFLAGS) $*.c
94 uncompr.obj: uncompr.c zlib.h zconf.h
95 $(CC) -c $(CFLAGS) $*.c
97 zutil.obj: zutil.c zutil.h zlib.h zconf.h
98 $(CC) -c $(CFLAGS) $*.c
100 LIBOBJECTS = $(OBJ1) $(OBJ2)
102 $(LIBTARGET): $(LIBOBJECTS)