kusano fc6ab3
# Amiga powerUP (TM) Makefile
kusano fc6ab3
# makefile for libpng and SAS C V6.58/7.00 PPC compiler
kusano fc6ab3
# Copyright (C) 1998 by Andreas R. Kleinert
kusano fc6ab3
kusano fc6ab3
LIBNAME	= libzip.a
kusano fc6ab3
kusano fc6ab3
CC	= scppc
kusano fc6ab3
CFLAGS	= NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
kusano fc6ab3
	  OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 NOVER
kusano fc6ab3
AR	= ppc-amigaos-ar cr
kusano fc6ab3
RANLIB	= ppc-amigaos-ranlib
kusano fc6ab3
LD	= ppc-amigaos-ld -r
kusano fc6ab3
LDFLAGS	= -o
kusano fc6ab3
LDLIBS	= LIB:scppc.a LIB:end.o
kusano fc6ab3
RM	= delete quiet
kusano fc6ab3
kusano fc6ab3
OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
kusano fc6ab3
       uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
kusano fc6ab3
kusano fc6ab3
TEST_OBJS = example.o minigzip.o
kusano fc6ab3
kusano fc6ab3
all: example minigzip
kusano fc6ab3
kusano fc6ab3
check: test
kusano fc6ab3
test: all
kusano fc6ab3
	example
kusano fc6ab3
	echo hello world | minigzip | minigzip -d
kusano fc6ab3
kusano fc6ab3
$(LIBNAME): $(OBJS)
kusano fc6ab3
	$(AR) $@ $(OBJS)
kusano fc6ab3
	-$(RANLIB) $@
kusano fc6ab3
kusano fc6ab3
example: example.o $(LIBNAME)
kusano fc6ab3
	$(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
kusano fc6ab3
kusano fc6ab3
minigzip: minigzip.o $(LIBNAME)
kusano fc6ab3
	$(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
kusano fc6ab3
kusano fc6ab3
mostlyclean: clean
kusano fc6ab3
clean:
kusano fc6ab3
	$(RM) *.o example minigzip $(LIBNAME) foo.gz
kusano fc6ab3
kusano fc6ab3
zip:
kusano fc6ab3
	zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
kusano fc6ab3
	  descrip.mms *.[ch]
kusano fc6ab3
kusano fc6ab3
tgz:
kusano fc6ab3
	cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
kusano fc6ab3
	  zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
kusano fc6ab3
kusano fc6ab3
# DO NOT DELETE THIS LINE -- make depend depends on it.
kusano fc6ab3
kusano fc6ab3
adler32.o: zlib.h zconf.h
kusano fc6ab3
compress.o: zlib.h zconf.h
kusano fc6ab3
crc32.o: crc32.h zlib.h zconf.h
kusano fc6ab3
deflate.o: deflate.h zutil.h zlib.h zconf.h
kusano fc6ab3
example.o: zlib.h zconf.h
kusano fc6ab3
gzclose.o: zlib.h zconf.h gzguts.h
kusano fc6ab3
gzlib.o: zlib.h zconf.h gzguts.h
kusano fc6ab3
gzread.o: zlib.h zconf.h gzguts.h
kusano fc6ab3
gzwrite.o: zlib.h zconf.h gzguts.h
kusano fc6ab3
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
kusano fc6ab3
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
kusano fc6ab3
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
kusano fc6ab3
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
kusano fc6ab3
minigzip.o: zlib.h zconf.h
kusano fc6ab3
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
kusano fc6ab3
uncompr.o: zlib.h zconf.h
kusano fc6ab3
zutil.o: zutil.h zlib.h zconf.h