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++ -------------
14 CFLAGS=-O2 -Z $(MODEL) -3 -Fs-
18 # replace bcc with tcc for Turbo C++ 1.0
22 LIBTARGET=..\..\lib\zlib.lib
25 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
27 OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
29 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
30 infutil$(O) inffast$(O)
31 OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
32 infutil$(O)+inffast$(O)
36 adler32.obj: adler32.c zutil.h zlib.h zconf.h
37 $(CC) -c $(CFLAGS) $*.c
39 compress.obj: compress.c zlib.h zconf.h
40 $(CC) -c $(CFLAGS) $*.c
42 crc32.obj: crc32.c zutil.h zlib.h zconf.h
43 $(CC) -c $(CFLAGS) $*.c
45 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
46 $(CC) -c $(CFLAGS) $*.c
48 gzio.obj: gzio.c zutil.h zlib.h zconf.h
49 $(CC) -c $(CFLAGS) $*.c
51 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
53 $(CC) -c $(CFLAGS) $*.c
55 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
57 $(CC) -c $(CFLAGS) $*.c
59 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
60 $(CC) -c $(CFLAGS) $*.c
62 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
63 $(CC) -c $(CFLAGS) $*.c
65 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
66 $(CC) -c $(CFLAGS) $*.c
68 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
69 $(CC) -c $(CFLAGS) $*.c
71 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
72 $(CC) -c $(CFLAGS) $*.c
74 uncompr.obj: uncompr.c zlib.h zconf.h
75 $(CC) -c $(CFLAGS) $*.c
77 zutil.obj: zutil.c zutil.h zlib.h zconf.h
78 $(CC) -c $(CFLAGS) $*.c
80 # we must cut the command line to fit in the MS/DOS 128 byte limit:
81 $(LIBTARGET): $(OBJ1) $(OBJ2)
82 $(LIB) $(LIBTARGET) +$(OBJP1)
83 $(LIB) $(LIBTARGET) +$(OBJP2)