diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:21:57 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:21:57 -0700 |
commit | 13a294f044ef0a89b2dcbfbb5d4d4c792673348e (patch) | |
tree | d9b377b4d8c00633c3da4e96659bfba9b08287f2 /win32/Makefile.bor | |
parent | 7c2a874e50b871d04fbd19501f7b42cff55e5abc (diff) | |
download | zlib-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.bor | 91 |
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: | ||
12 | LOC = $(LOCAL_ZLIB) | ||
13 | |||
14 | CC = bcc32 | ||
15 | LD = bcc32 | ||
16 | AR = tlib | ||
17 | CFLAGS = -O2 -d -k- $(LOC) | ||
18 | LDFLAGS = $(LOC) | ||
19 | |||
20 | |||
21 | # variables | ||
22 | ZLIB_LIB = zlib.lib | ||
23 | |||
24 | OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj | ||
25 | OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj | ||
26 | OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj | ||
27 | OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj | ||
28 | |||
29 | |||
30 | # targets | ||
31 | all: $(ZLIB_LIB) example.exe minigzip.exe | ||
32 | |||
33 | .c.obj: | ||
34 | $(CC) -c $(CFLAGS) $*.c | ||
35 | |||
36 | adler32.obj: adler32.c zlib.h zconf.h | ||
37 | |||
38 | compress.obj: compress.c zlib.h zconf.h | ||
39 | |||
40 | crc32.obj: crc32.c zlib.h zconf.h crc32.h | ||
41 | |||
42 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
43 | |||
44 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
45 | |||
46 | infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ | ||
47 | inffast.h inffixed.h | ||
48 | |||
49 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ | ||
50 | inffast.h | ||
51 | |||
52 | inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ | ||
53 | inffast.h inffixed.h | ||
54 | |||
55 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
56 | |||
57 | trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h | ||
58 | |||
59 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
60 | |||
61 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
62 | |||
63 | example.obj: example.c zlib.h zconf.h | ||
64 | |||
65 | minigzip.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 | |||
75 | example.exe: example.obj $(ZLIB_LIB) | ||
76 | $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB) | ||
77 | |||
78 | minigzip.exe: minigzip.obj $(ZLIB_LIB) | ||
79 | $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB) | ||
80 | |||
81 | test: example.exe minigzip.exe | ||
82 | example | ||
83 | echo hello world | minigzip | minigzip -d | ||
84 | |||
85 | clean: | ||
86 | -del *.obj | ||
87 | -del *.exe | ||
88 | -del *.lib | ||
89 | -del *.tds | ||
90 | -del zlib.bak | ||
91 | -del foo.gz | ||