]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/zlib/makefile.b32
bug with multi-part status bars with default widths corrected
[wxWidgets.git] / src / zlib / makefile.b32
... / ...
CommitLineData
1# Makefile for zlib
2# Borland C++
3
4# This version of the zlib makefile was adapted by Chris Young for use
5# with Borland C 4.5x with the Dos Power Pack for a 32-bit protected mode
6# flat memory model. It was created for use with POV-Ray ray tracer and
7# you may choose to edit the CFLAGS to suit your needs but the
8# switches -WX and -DMSDOS are required.
9# -- Chris Young 76702.1655@compuserve.com
10
11# To use, do "make -fmakefile.b32"
12
13# See zconf.h for details about the memory requirements.
14
15# ------------- Borland C++ -------------
16MODEL=-WX
17CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS
18CC=bcc32
19LD=bcc32
20LIB=tlib
21LDFLAGS= $(MODEL)
22O=.obj
23
24LIBTARGET=..\..\lib\zlib.lib
25
26# variables
27OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
28 trees$(O)
29OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
30 trees$(O)
31OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
32 infutil$(O) inffast$(O)
33OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
34 infutil$(O)+inffast$(O)
35
36all: test
37
38adler32.obj: adler32.c zutil.h zlib.h zconf.h
39 $(CC) -c $(CFLAGS) $*.c
40
41compress.obj: compress.c zlib.h zconf.h
42 $(CC) -c $(CFLAGS) $*.c
43
44crc32.obj: crc32.c zutil.h zlib.h zconf.h
45 $(CC) -c $(CFLAGS) $*.c
46
47deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
48 $(CC) -c $(CFLAGS) $*.c
49
50gzio.obj: gzio.c zutil.h zlib.h zconf.h
51 $(CC) -c $(CFLAGS) $*.c
52
53infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
54 infcodes.h infutil.h
55 $(CC) -c $(CFLAGS) $*.c
56
57infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
58 infcodes.h inffast.h
59 $(CC) -c $(CFLAGS) $*.c
60
61inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
62 $(CC) -c $(CFLAGS) $*.c
63
64inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
65 $(CC) -c $(CFLAGS) $*.c
66
67infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
68 $(CC) -c $(CFLAGS) $*.c
69
70inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
71 $(CC) -c $(CFLAGS) $*.c
72
73trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
74 $(CC) -c $(CFLAGS) $*.c
75
76uncompr.obj: uncompr.c zlib.h zconf.h
77 $(CC) -c $(CFLAGS) $*.c
78
79zutil.obj: zutil.c zutil.h zlib.h zconf.h
80 $(CC) -c $(CFLAGS) $*.c
81
82example.obj: example.c zlib.h zconf.h
83 $(CC) -c $(CFLAGS) $*.c
84
85minigzip.obj: minigzip.c zlib.h zconf.h
86 $(CC) -c $(CFLAGS) $*.c
87
88# we must cut the command line to fit in the MS/DOS 128 byte limit:
89$(LIBTARGET: $(OBJ1) $(OBJ2)
90 del $(LIBTARGET)
91 $(LIB) $(LIBTARGET) +$(OBJP1)
92 $(LIB) $(LIBTARGET) +$(OBJP2)
93
94example.exe: example.obj $(LIBTARGET)
95 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
96
97minigzip.exe: minigzip.obj $(LIBTARGET)
98 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
99
100test: example.exe minigzip.exe
101 example
102 echo hello world | minigzip | minigzip -d
103
104clean:
105 del *.obj
106 del *.exe
107 del $(LIBTARGET)