]> git.saurik.com Git - wxWidgets.git/blob - src/zlib/makefile.b32
Sorry, I went and removed consts as per the style guide :-)
[wxWidgets.git] / src / zlib / makefile.b32
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++ -------------
16 MODEL=-WX
17 CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS
18 CC=bcc32
19 LD=bcc32
20 LIB=tlib
21 LDFLAGS= $(MODEL)
22 O=.obj
23
24 LIBTARGET=..\..\lib\zlib.lib
25
26 # variables
27 OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
28 trees$(O)
29 OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
30 trees$(O)
31 OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
32 infutil$(O) inffast$(O)
33 OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
34 infutil$(O)+inffast$(O)
35
36 all: test
37
38 adler32.obj: adler32.c zutil.h zlib.h zconf.h
39 $(CC) -c $(CFLAGS) $*.c
40
41 compress.obj: compress.c zlib.h zconf.h
42 $(CC) -c $(CFLAGS) $*.c
43
44 crc32.obj: crc32.c zutil.h zlib.h zconf.h
45 $(CC) -c $(CFLAGS) $*.c
46
47 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
48 $(CC) -c $(CFLAGS) $*.c
49
50 gzio.obj: gzio.c zutil.h zlib.h zconf.h
51 $(CC) -c $(CFLAGS) $*.c
52
53 infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
54 infcodes.h infutil.h
55 $(CC) -c $(CFLAGS) $*.c
56
57 infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
58 infcodes.h inffast.h
59 $(CC) -c $(CFLAGS) $*.c
60
61 inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
62 $(CC) -c $(CFLAGS) $*.c
63
64 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
65 $(CC) -c $(CFLAGS) $*.c
66
67 infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
68 $(CC) -c $(CFLAGS) $*.c
69
70 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
71 $(CC) -c $(CFLAGS) $*.c
72
73 trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
74 $(CC) -c $(CFLAGS) $*.c
75
76 uncompr.obj: uncompr.c zlib.h zconf.h
77 $(CC) -c $(CFLAGS) $*.c
78
79 zutil.obj: zutil.c zutil.h zlib.h zconf.h
80 $(CC) -c $(CFLAGS) $*.c
81
82 example.obj: example.c zlib.h zconf.h
83 $(CC) -c $(CFLAGS) $*.c
84
85 minigzip.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
94 example.exe: example.obj $(LIBTARGET)
95 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
96
97 minigzip.exe: minigzip.obj $(LIBTARGET)
98 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
99
100 test: example.exe minigzip.exe
101 example
102 echo hello world | minigzip | minigzip -d
103
104 clean:
105 del *.obj
106 del *.exe
107 del $(LIBTARGET)