]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/makefile.wat
added dependency handling to Makefiles
[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
8a2c6ef8
JS
32# all: test
33
34all: $(LIBTARGET)
c801d85f
KB
35
36adler32.obj: adler32.c zutil.h zlib.h zconf.h
37 $(CC) $(CFLAGS) $*.c
38
39compress.obj: compress.c zlib.h zconf.h
40 $(CC) $(CFLAGS) $*.c
41
42crc32.obj: crc32.c zutil.h zlib.h zconf.h
43 $(CC) $(CFLAGS) $*.c
44
45deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
46 $(CC) $(CFLAGS) $*.c
47
48gzio.obj: gzio.c zutil.h zlib.h zconf.h
49 $(CC) $(CFLAGS) $*.c
50
51infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h &
52 infcodes.h infutil.h
53 $(CC) $(CFLAGS) $*.c
54
55infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h &
56 infcodes.h inffast.h
57 $(CC) $(CFLAGS) $*.c
58
59inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
60 $(CC) $(CFLAGS) $*.c
61
62inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
63 $(CC) $(CFLAGS) $*.c
64
65infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
66 $(CC) $(CFLAGS) $*.c
67
68inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
69 $(CC) $(CFLAGS) $*.c
70
71trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
72 $(CC) $(CFLAGS) $*.c
73
74uncompr.obj: uncompr.c zlib.h zconf.h
75 $(CC) $(CFLAGS) $*.c
76
77zutil.obj: zutil.c zutil.h zlib.h zconf.h
78 $(CC) $(CFLAGS) $*.c
79
80example.obj: example.c zlib.h zconf.h
81 $(CC) $(CFLAGS) $*.c
82
83minigzip.obj: minigzip.c zlib.h zconf.h
84 $(CC) $(CFLAGS) $*.c
85
86# we must cut the command line to fit in the MS/DOS 128 byte limit:
87$(LIBTARGET): $(OBJ1) $(OBJ2) $(OBJ3)
9e9b65c1 88 if exist $(LIBTARGET) del $(LIBTARGET)
c801d85f
KB
89 $(LIB) $(LIBTARGET) +$(OBJP1)
90 $(LIB) $(LIBTARGET) +$(OBJP2)
91 $(LIB) $(LIBTARGET) +$(OBJP3)
92
93example.exe: example.obj $(LIBTARGET)
94 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
95
96minigzip.exe: minigzip.obj $(LIBTARGET)
97 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
98
99test: minigzip.exe example.exe
100 example
101 echo hello world | minigzip | minigzip -d >test
102 type test
103
a3ef5bf5 104clean: .SYMBOLIC
c801d85f
KB
105 -erase *.obj
106 -erase *.exe
107 -erase $(LIBTARGET)