2 # Patched for zlib 1.1.2 rw@shadow.org.uk 19980430
3 # test works out-of-the-box, installs `somewhere' on demand
6 CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fah
7 C++flags = -c -depend !Depend -IC: -throwback
8 Linkflags = -aif -c++ -o $@
9 ObjAsmflags = -throwback -NoCache -depend !Depend
11 LibFileflags = -c -l -o $@
14 # change the line below to where _you_ want the library installed.
18 @.lib: @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \
19 @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \
21 LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \
22 @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \
23 @.o.trees @.o.uncompr @.o.zutil
24 test: @.minigzip @.example @.lib
25 @copy @.lib @.libc A~C~DF~L~N~P~Q~RS~TV
26 @echo running tests: hang on.
27 @/@.minigzip -f -9 libc
28 @/@.minigzip -d libc-gz
29 @/@.minigzip -f -1 libc
30 @/@.minigzip -d libc-gz
31 @/@.minigzip -h -9 libc
32 @/@.minigzip -d libc-gz
33 @/@.minigzip -h -1 libc
34 @/@.minigzip -d libc-gz
36 @/@.minigzip -d libc-gz
38 @/@.minigzip -d libc-gz
40 @echo that should have reported '@.lib and @.libc identical' if you have diff.
41 @/@.example @.fred @.fred
42 @echo that will have given lots of hello!'s.
44 @.minigzip: @.o.minigzip @.lib C:o.Stubs
45 Link $(Linkflags) @.o.minigzip @.lib C:o.Stubs
46 @.example: @.o.example @.lib C:o.Stubs
47 Link $(Linkflags) @.o.example @.lib C:o.Stubs
52 @copy @.h.zlib $(libdest).h.zlib A~C~DF~L~N~P~Q~RS~TV
53 @copy @.h.zconf $(libdest).h.zconf A~C~DF~L~N~P~Q~RS~TV
54 @copy @.lib $(libdest).lib A~C~DF~L~N~P~Q~RS~TV
55 @echo okay, installed zlib in $(libdest)
57 clean:; remove @.minigzip
63 # User-editable dependencies:
65 cc $(ccflags) -o $@ $<
67 # Static dependencies:
69 # Dynamic dependencies:
73 o.minigzip: c.minigzip
79 o.compress: c.compress
94 o.infblock: c.infblock
98 o.infblock: h.infblock
99 o.infblock: h.inftrees
100 o.infblock: h.infcodes
101 o.infblock: h.infutil
102 o.infcodes: c.infcodes
106 o.infcodes: h.inftrees
107 o.infcodes: h.infblock
108 o.infcodes: h.infcodes
109 o.infcodes: h.infutil
110 o.infcodes: h.inffast
115 o.inffast: h.inftrees
116 o.inffast: h.infblock
117 o.inffast: h.infcodes
124 o.inflate: h.infblock
125 o.inftrees: c.inftrees
129 o.inftrees: h.inftrees
130 o.inftrees: h.inffixed
135 o.infutil: h.infblock
136 o.infutil: h.inftrees
137 o.infutil: h.infcodes