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