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
21 CFLAGS=-O2 $(CRTFLAG) /GX
25 !if "$(CRTFLAG)" == ""
33 # replace bcc with tcc for Turbo C++ 1.0
38 LIBTARGET=..\..\lib\zlib.lib
40 LIBTARGET=..\..\lib\zlibd.lib
44 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
46 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
47 infutil$(O) inffast$(O)
51 adler32.obj: adler32.c zutil.h zlib.h zconf.h
52 $(CC) -c $(CFLAGS) $*.c
54 compress.obj: compress.c zlib.h zconf.h
55 $(CC) -c $(CFLAGS) $*.c
57 crc32.obj: crc32.c zutil.h zlib.h zconf.h
58 $(CC) -c $(CFLAGS) $*.c
60 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
61 $(CC) -c $(CFLAGS) $*.c
63 gzio.obj: gzio.c zutil.h zlib.h zconf.h
64 $(CC) -c $(CFLAGS) $*.c
66 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
68 $(CC) -c $(CFLAGS) $*.c
70 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
72 $(CC) -c $(CFLAGS) $*.c
74 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
75 $(CC) -c $(CFLAGS) $*.c
77 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
78 $(CC) -c $(CFLAGS) $*.c
80 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
81 $(CC) -c $(CFLAGS) $*.c
83 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
84 $(CC) -c $(CFLAGS) $*.c
86 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
87 $(CC) -c $(CFLAGS) $*.c
89 uncompr.obj: uncompr.c zlib.h zconf.h
90 $(CC) -c $(CFLAGS) $*.c
92 zutil.obj: zutil.c zutil.h zlib.h zconf.h
93 $(CC) -c $(CFLAGS) $*.c
95 LIBOBJECTS = $(OBJ1) $(OBJ2)
97 $(LIBTARGET): $(LIBOBJECTS)