summaryrefslogtreecommitdiff
path: root/win32/Makefile.bor
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:57 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:57 -0700
commit13a294f044ef0a89b2dcbfbb5d4d4c792673348e (patch)
treed9b377b4d8c00633c3da4e96659bfba9b08287f2 /win32/Makefile.bor
parent7c2a874e50b871d04fbd19501f7b42cff55e5abc (diff)
downloadzlib-1.2.0.1.tar.gz
zlib-1.2.0.1.tar.bz2
zlib-1.2.0.1.zip
zlib 1.2.0.1v1.2.0.1
Diffstat (limited to 'win32/Makefile.bor')
-rw-r--r--win32/Makefile.bor91
1 files changed, 91 insertions, 0 deletions
diff --git a/win32/Makefile.bor b/win32/Makefile.bor
new file mode 100644
index 0000000..f1a1c46
--- /dev/null
+++ b/win32/Makefile.bor
@@ -0,0 +1,91 @@
1# Makefile for zlib
2# Borland C++ for Win32
3# Updated for zlib-1.2.x by Cosmin Truta, 11-Mar-2003.
4
5# Usage: "make -f win32/makefile.bor"
6
7# ------------ Borland C++ for Win32 ------------
8
9# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
10# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
11# to the declaration of LOC here:
12LOC = $(LOCAL_ZLIB)
13
14CC = bcc32
15LD = bcc32
16AR = tlib
17CFLAGS = -O2 -d -k- $(LOC)
18LDFLAGS = $(LOC)
19
20
21# variables
22ZLIB_LIB = zlib.lib
23
24OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
25OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
26OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
27OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
28
29
30# targets
31all: $(ZLIB_LIB) example.exe minigzip.exe
32
33.c.obj:
34 $(CC) -c $(CFLAGS) $*.c
35
36adler32.obj: adler32.c zlib.h zconf.h
37
38compress.obj: compress.c zlib.h zconf.h
39
40crc32.obj: crc32.c zlib.h zconf.h crc32.h
41
42deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
43
44gzio.obj: gzio.c zutil.h zlib.h zconf.h
45
46infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
47 inffast.h inffixed.h
48
49inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
50 inffast.h
51
52inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
53 inffast.h inffixed.h
54
55inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
56
57trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
58
59uncompr.obj: uncompr.c zlib.h zconf.h
60
61zutil.obj: zutil.c zutil.h zlib.h zconf.h
62
63example.obj: example.c zlib.h zconf.h
64
65minigzip.obj: minigzip.c zlib.h zconf.h
66
67
68# For the sake of the old Borland make,
69# the command line is cut to fit in the MS-DOS 128 byte limit:
70$(ZLIB_LIB): $(OBJ1) $(OBJ2)
71 -del $(ZLIB_LIB)
72 $(AR) $(ZLIB_LIB) $(OBJP1)
73 $(AR) $(ZLIB_LIB) $(OBJP2)
74
75example.exe: example.obj $(ZLIB_LIB)
76 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
77
78minigzip.exe: minigzip.obj $(ZLIB_LIB)
79 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
80
81test: example.exe minigzip.exe
82 example
83 echo hello world | minigzip | minigzip -d
84
85clean:
86 -del *.obj
87 -del *.exe
88 -del *.lib
89 -del *.tds
90 -del zlib.bak
91 -del foo.gz