2 # Borland C++ for Win32
5 # make -f win32/Makefile.bor
7 # ------------ Borland C++ ------------
9 # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
10 # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
11 # added to the declaration of LOC here:
18 CFLAGS = -a -d -k- -O2 $(LOC)
26 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
27 OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
29 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
30 OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
35 all: $(ZLIB_LIB) example.exe minigzip.exe
41 $(AS) -c $(ASFLAGS) $<
43 adler32.obj: adler32.c zlib.h zconf.h
45 compress.obj: compress.c zlib.h zconf.h
47 crc32.obj: crc32.c zlib.h zconf.h crc32.h
49 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
51 gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
53 gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
55 gzread.obj: gzread.c zlib.h zconf.h gzguts.h
57 gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
59 infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
62 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
65 inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
68 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
70 trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
72 uncompr.obj: uncompr.c zlib.h zconf.h
74 zutil.obj: zutil.c zutil.h zlib.h zconf.h
76 example.obj: test/example.c zlib.h zconf.h
78 minigzip.obj: test/minigzip.c zlib.h zconf.h
81 # For the sake of the old Borland make,
82 # the command line is cut to fit in the MS-DOS 128 byte limit:
83 $(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
85 $(AR) $(ZLIB_LIB) $(OBJP1)
86 $(AR) $(ZLIB_LIB) $(OBJP2)
87 $(AR) $(ZLIB_LIB) $(OBJPA)
91 test: example.exe minigzip.exe
93 echo hello world | minigzip | minigzip -d
95 example.exe: example.obj $(ZLIB_LIB)
96 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
98 minigzip.exe: minigzip.obj $(ZLIB_LIB)
99 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)