]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/makefile.b32
latest CW additions
[wxWidgets.git] / src / zlib / makefile.b32
CommitLineData
c801d85f
KB
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
58c55d1f 24LIBTARGET=..\..\lib\zlib.lib
c801d85f
KB
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
27529614
JS
88lib: $(LIBTARGET)
89
c801d85f 90# we must cut the command line to fit in the MS/DOS 128 byte limit:
27529614 91$(LIBTARGET): $(OBJ1) $(OBJ2)
c801d85f
KB
92 del $(LIBTARGET)
93 $(LIB) $(LIBTARGET) +$(OBJP1)
94 $(LIB) $(LIBTARGET) +$(OBJP2)
95
96example.exe: example.obj $(LIBTARGET)
97 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
98
99minigzip.exe: minigzip.obj $(LIBTARGET)
100 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
101
102test: example.exe minigzip.exe
103 example
104 echo hello world | minigzip | minigzip -d
105
106clean:
341287bf
JS
107 erase *.obj
108 erase *.exe
109 erase $(LIBTARGET)