kusano fc6ab3
# Project:   zlib_1_03
kusano fc6ab3
# Patched for zlib 1.1.2 rw@shadow.org.uk 19980430
kusano fc6ab3
# test works out-of-the-box, installs `somewhere' on demand
kusano fc6ab3
kusano fc6ab3
# Toolflags:
kusano fc6ab3
CCflags = -c -depend !Depend -IC: -g -throwback  -DRISCOS  -fah
kusano fc6ab3
C++flags = -c -depend !Depend -IC: -throwback
kusano fc6ab3
Linkflags = -aif -c++ -o $@
kusano fc6ab3
ObjAsmflags = -throwback -NoCache -depend !Depend
kusano fc6ab3
CMHGflags =
kusano fc6ab3
LibFileflags = -c -l -o $@
kusano fc6ab3
Squeezeflags = -o $@
kusano fc6ab3
kusano fc6ab3
# change the line below to where _you_ want the library installed.
kusano fc6ab3
libdest = lib:zlib
kusano fc6ab3
kusano fc6ab3
# Final targets:
kusano fc6ab3
@.lib:   @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \
kusano fc6ab3
        @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \
kusano fc6ab3
        @.o.uncompr @.o.zutil
kusano fc6ab3
        LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \
kusano fc6ab3
        @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \
kusano fc6ab3
        @.o.trees @.o.uncompr @.o.zutil
kusano fc6ab3
test:   @.minigzip @.example @.lib
kusano fc6ab3
	@copy @.lib @.libc  A~C~DF~L~N~P~Q~RS~TV
kusano fc6ab3
	@echo running tests: hang on.
kusano fc6ab3
	@/@.minigzip -f -9 libc
kusano fc6ab3
	@/@.minigzip -d libc-gz
kusano fc6ab3
	@/@.minigzip -f -1 libc
kusano fc6ab3
	@/@.minigzip -d libc-gz
kusano fc6ab3
	@/@.minigzip -h -9 libc
kusano fc6ab3
	@/@.minigzip -d libc-gz
kusano fc6ab3
	@/@.minigzip -h -1 libc
kusano fc6ab3
	@/@.minigzip -d libc-gz
kusano fc6ab3
	@/@.minigzip -9 libc
kusano fc6ab3
	@/@.minigzip -d libc-gz
kusano fc6ab3
	@/@.minigzip -1 libc
kusano fc6ab3
	@/@.minigzip -d libc-gz
kusano fc6ab3
	@diff @.lib @.libc
kusano fc6ab3
	@echo that should have reported '@.lib and @.libc identical' if you have diff.
kusano fc6ab3
	@/@.example @.fred @.fred
kusano fc6ab3
	@echo that will have given lots of hello!'s.
kusano fc6ab3
kusano fc6ab3
@.minigzip:   @.o.minigzip @.lib C:o.Stubs
kusano fc6ab3
        Link $(Linkflags) @.o.minigzip @.lib C:o.Stubs
kusano fc6ab3
@.example:   @.o.example @.lib C:o.Stubs
kusano fc6ab3
        Link $(Linkflags) @.o.example @.lib C:o.Stubs
kusano fc6ab3
kusano fc6ab3
install: @.lib
kusano fc6ab3
	cdir $(libdest)
kusano fc6ab3
	cdir $(libdest).h
kusano fc6ab3
	@copy @.h.zlib $(libdest).h.zlib A~C~DF~L~N~P~Q~RS~TV
kusano fc6ab3
	@copy @.h.zconf $(libdest).h.zconf A~C~DF~L~N~P~Q~RS~TV
kusano fc6ab3
	@copy @.lib $(libdest).lib  A~C~DF~L~N~P~Q~RS~TV
kusano fc6ab3
	@echo okay, installed zlib in $(libdest)
kusano fc6ab3
kusano fc6ab3
clean:; remove @.minigzip
kusano fc6ab3
	remove @.example
kusano fc6ab3
	remove @.libc
kusano fc6ab3
	-wipe @.o.* F~r~cV
kusano fc6ab3
	remove @.fred
kusano fc6ab3
kusano fc6ab3
# User-editable dependencies:
kusano fc6ab3
.c.o:
kusano fc6ab3
        cc $(ccflags) -o $@ $<
kusano fc6ab3
kusano fc6ab3
# Static dependencies:
kusano fc6ab3
kusano fc6ab3
# Dynamic dependencies:
kusano fc6ab3
o.example:	c.example
kusano fc6ab3
o.example:	h.zlib
kusano fc6ab3
o.example:	h.zconf
kusano fc6ab3
o.minigzip:	c.minigzip
kusano fc6ab3
o.minigzip:	h.zlib
kusano fc6ab3
o.minigzip:	h.zconf
kusano fc6ab3
o.adler32:	c.adler32
kusano fc6ab3
o.adler32:	h.zlib
kusano fc6ab3
o.adler32:	h.zconf
kusano fc6ab3
o.compress:	c.compress
kusano fc6ab3
o.compress:	h.zlib
kusano fc6ab3
o.compress:	h.zconf
kusano fc6ab3
o.crc32:	c.crc32
kusano fc6ab3
o.crc32:	h.zlib
kusano fc6ab3
o.crc32:	h.zconf
kusano fc6ab3
o.deflate:	c.deflate
kusano fc6ab3
o.deflate:	h.deflate
kusano fc6ab3
o.deflate:	h.zutil
kusano fc6ab3
o.deflate:	h.zlib
kusano fc6ab3
o.deflate:	h.zconf
kusano fc6ab3
o.gzio:	c.gzio
kusano fc6ab3
o.gzio:	h.zutil
kusano fc6ab3
o.gzio:	h.zlib
kusano fc6ab3
o.gzio:	h.zconf
kusano fc6ab3
o.infblock:	c.infblock
kusano fc6ab3
o.infblock:	h.zutil
kusano fc6ab3
o.infblock:	h.zlib
kusano fc6ab3
o.infblock:	h.zconf
kusano fc6ab3
o.infblock:	h.infblock
kusano fc6ab3
o.infblock:	h.inftrees
kusano fc6ab3
o.infblock:	h.infcodes
kusano fc6ab3
o.infblock:	h.infutil
kusano fc6ab3
o.infcodes:	c.infcodes
kusano fc6ab3
o.infcodes:	h.zutil
kusano fc6ab3
o.infcodes:	h.zlib
kusano fc6ab3
o.infcodes:	h.zconf
kusano fc6ab3
o.infcodes:	h.inftrees
kusano fc6ab3
o.infcodes:	h.infblock
kusano fc6ab3
o.infcodes:	h.infcodes
kusano fc6ab3
o.infcodes:	h.infutil
kusano fc6ab3
o.infcodes:	h.inffast
kusano fc6ab3
o.inffast:	c.inffast
kusano fc6ab3
o.inffast:	h.zutil
kusano fc6ab3
o.inffast:	h.zlib
kusano fc6ab3
o.inffast:	h.zconf
kusano fc6ab3
o.inffast:	h.inftrees
kusano fc6ab3
o.inffast:	h.infblock
kusano fc6ab3
o.inffast:	h.infcodes
kusano fc6ab3
o.inffast:	h.infutil
kusano fc6ab3
o.inffast:	h.inffast
kusano fc6ab3
o.inflate:	c.inflate
kusano fc6ab3
o.inflate:	h.zutil
kusano fc6ab3
o.inflate:	h.zlib
kusano fc6ab3
o.inflate:	h.zconf
kusano fc6ab3
o.inflate:	h.infblock
kusano fc6ab3
o.inftrees:	c.inftrees
kusano fc6ab3
o.inftrees:	h.zutil
kusano fc6ab3
o.inftrees:	h.zlib
kusano fc6ab3
o.inftrees:	h.zconf
kusano fc6ab3
o.inftrees:	h.inftrees
kusano fc6ab3
o.inftrees:	h.inffixed
kusano fc6ab3
o.infutil:	c.infutil
kusano fc6ab3
o.infutil:	h.zutil
kusano fc6ab3
o.infutil:	h.zlib
kusano fc6ab3
o.infutil:	h.zconf
kusano fc6ab3
o.infutil:	h.infblock
kusano fc6ab3
o.infutil:	h.inftrees
kusano fc6ab3
o.infutil:	h.infcodes
kusano fc6ab3
o.infutil:	h.infutil
kusano fc6ab3
o.trees:	c.trees
kusano fc6ab3
o.trees:	h.deflate
kusano fc6ab3
o.trees:	h.zutil
kusano fc6ab3
o.trees:	h.zlib
kusano fc6ab3
o.trees:	h.zconf
kusano fc6ab3
o.trees:	h.trees
kusano fc6ab3
o.uncompr:	c.uncompr
kusano fc6ab3
o.uncompr:	h.zlib
kusano fc6ab3
o.uncompr:	h.zconf
kusano fc6ab3
o.zutil:	c.zutil
kusano fc6ab3
o.zutil:	h.zutil
kusano fc6ab3
o.zutil:	h.zlib
kusano fc6ab3
o.zutil:	h.zconf