2 # Borland C++ for Win32
5 # make -f win32/Makefile.bor
6 # make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
8 # ------------ Borland C++ ------------
10 # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
11 # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
12 # added to the declaration of LOC here:
19 CFLAGS = -a -d -k- -O2 $(LOC)
27 OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
28 OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
30 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
31 OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
36 all: $(ZLIB_LIB) example.exe minigzip.exe
42 $(AS) -c $(ASFLAGS) $<
44 adler32.obj: adler32.c zlib.h zconf.h
46 compress.obj: compress.c zlib.h zconf.h
48 crc32.obj: crc32.c zlib.h zconf.h crc32.h
50 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
52 gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
54 gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
56 gzread.obj: gzread.c zlib.h zconf.h gzguts.h
58 gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
60 infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
63 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
66 inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
69 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
71 trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
73 uncompr.obj: uncompr.c zlib.h zconf.h
75 zutil.obj: zutil.c zutil.h zlib.h zconf.h
77 example.obj: test/example.c zlib.h zconf.h
79 minigzip.obj: test/minigzip.c zlib.h zconf.h
82 # For the sake of the old Borland make,
83 # the command line is cut to fit in the MS-DOS 128 byte limit:
84 $(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
86 $(AR) $(ZLIB_LIB) $(OBJP1)
87 $(AR) $(ZLIB_LIB) $(OBJP2)
88 $(AR) $(ZLIB_LIB) $(OBJPA)
92 test: example.exe minigzip.exe
94 echo hello world | minigzip | minigzip -d
96 example.exe: example.obj $(ZLIB_LIB)
97 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
99 minigzip.exe: minigzip.obj $(ZLIB_LIB)
100 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)