2
# Borland C++ for Win32
4
# Updated for zlib 1.2.x by Cosmin Truta, 11-Mar-2003
5
# Last updated: 28-Aug-2003
8
# make -f win32/Makefile.bor
9
# make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
11
# ------------ Borland C++ ------------
13
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
14
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
15
# added to the declaration of LOC here:
22
CFLAGS = -a -d -k- -O2 $(LOC)
30
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
31
OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
33
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
34
OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
39
all: $(ZLIB_LIB) example.exe minigzip.exe
45
$(AS) -c $(ASFLAGS) $<
47
adler32.obj: adler32.c zlib.h zconf.h
49
compress.obj: compress.c zlib.h zconf.h
51
crc32.obj: crc32.c zlib.h zconf.h crc32.h
53
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
55
gzio.obj: gzio.c zutil.h zlib.h zconf.h
57
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
60
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
63
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
66
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
68
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
70
uncompr.obj: uncompr.c zlib.h zconf.h
72
zutil.obj: zutil.c zutil.h zlib.h zconf.h
74
example.obj: example.c zlib.h zconf.h
76
minigzip.obj: minigzip.c zlib.h zconf.h
79
# For the sake of the old Borland make,
80
# the command line is cut to fit in the MS-DOS 128 byte limit:
81
$(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
83
$(AR) $(ZLIB_LIB) $(OBJP1)
84
$(AR) $(ZLIB_LIB) $(OBJP2)
85
$(AR) $(ZLIB_LIB) $(OBJPA)
89
test: example.exe minigzip.exe
91
echo hello world | minigzip | minigzip -d
93
example.exe: example.obj $(ZLIB_LIB)
94
$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
96
minigzip.exe: minigzip.obj $(ZLIB_LIB)
97
$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)