]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/makefile.wat
Darwin dlopen functions is needed both for DYNLIB_CLASS and DYNAMIC_LOADER
[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
2796d5da 16CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DWIN32
c801d85f
KB
17CC=wcc386
18LD=wcl386
19LIB=wlib -b -c
20LDFLAGS=
21O=.obj
58c55d1f 22LIBTARGET=..\..\lib\zlib.lib
c801d85f
KB
23
24# variables
0a4f1bbf
VS
25OBJECTS=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) &
26 trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) &
27 infutil$(O) inffast$(O)
c801d85f 28
8a2c6ef8
JS
29# all: test
30
31all: $(LIBTARGET)
c801d85f
KB
32
33adler32.obj: adler32.c zutil.h zlib.h zconf.h
34 $(CC) $(CFLAGS) $*.c
35
36compress.obj: compress.c zlib.h zconf.h
37 $(CC) $(CFLAGS) $*.c
38
39crc32.obj: crc32.c zutil.h zlib.h zconf.h
40 $(CC) $(CFLAGS) $*.c
41
42deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
43 $(CC) $(CFLAGS) $*.c
44
45gzio.obj: gzio.c zutil.h zlib.h zconf.h
46 $(CC) $(CFLAGS) $*.c
47
48infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h &
49 infcodes.h infutil.h
50 $(CC) $(CFLAGS) $*.c
51
52infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h &
53 infcodes.h inffast.h
54 $(CC) $(CFLAGS) $*.c
55
56inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
57 $(CC) $(CFLAGS) $*.c
58
59inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
60 $(CC) $(CFLAGS) $*.c
61
62infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
63 $(CC) $(CFLAGS) $*.c
64
65inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
66 $(CC) $(CFLAGS) $*.c
67
68trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
69 $(CC) $(CFLAGS) $*.c
70
71uncompr.obj: uncompr.c zlib.h zconf.h
72 $(CC) $(CFLAGS) $*.c
73
74zutil.obj: zutil.c zutil.h zlib.h zconf.h
75 $(CC) $(CFLAGS) $*.c
76
77example.obj: example.c zlib.h zconf.h
78 $(CC) $(CFLAGS) $*.c
79
80minigzip.obj: minigzip.c zlib.h zconf.h
81 $(CC) $(CFLAGS) $*.c
82
2796d5da
VS
83$(LIBTARGET) : $(OBJECTS)
84 %create tmp.lbc
0a4f1bbf 85 @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
2796d5da
VS
86 wlib /b /c /n /p=512 $^@ @tmp.lbc
87
c801d85f
KB
88
89example.exe: example.obj $(LIBTARGET)
90 $(LD) $(LDFLAGS) example.obj $(LIBTARGET)
91
92minigzip.exe: minigzip.obj $(LIBTARGET)
93 $(LD) $(LDFLAGS) minigzip.obj $(LIBTARGET)
94
95test: minigzip.exe example.exe
96 example
97 echo hello world | minigzip | minigzip -d >test
98 type test
99
a3ef5bf5 100clean: .SYMBOLIC
c801d85f
KB
101 -erase *.obj
102 -erase *.exe
103 -erase $(LIBTARGET)