1# Amiga powerUP (TM) Makefile
2# makefile for libpng and SAS C V6.58/7.00 PPC compiler
3# Copyright (C) 1998 by Andreas R. Kleinert
4
5LIBNAME	= libzip.a
6
7CC	= scppc
8CFLAGS	= NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
9	  OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 NOVER
10AR	= ppc-amigaos-ar cr
11RANLIB	= ppc-amigaos-ranlib
12LD	= ppc-amigaos-ld -r
13LDFLAGS	= -o
14LDLIBS	= LIB:scppc.a LIB:end.o
15RM	= delete quiet
16
17OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
18       uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
19
20TEST_OBJS = example.o minigzip.o
21
22all: example minigzip
23
24check: test
25test: all
26	example
27	echo hello world | minigzip | minigzip -d
28
29$(LIBNAME): $(OBJS)
30	$(AR) $@ $(OBJS)
31	-$(RANLIB) $@
32
33example: example.o $(LIBNAME)
34	$(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
35
36minigzip: minigzip.o $(LIBNAME)
37	$(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
38
39mostlyclean: clean
40clean:
41	$(RM) *.o example minigzip $(LIBNAME) foo.gz
42
43zip:
44	zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
45	  descrip.mms *.[ch]
46
47tgz:
48	cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
49	  zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
50
51# DO NOT DELETE THIS LINE -- make depend depends on it.
52
53adler32.o: zlib.h zconf.h
54compress.o: zlib.h zconf.h
55crc32.o: crc32.h zlib.h zconf.h
56deflate.o: deflate.h zutil.h zlib.h zconf.h
57example.o: zlib.h zconf.h
58gzclose.o: zlib.h zconf.h gzguts.h
59gzlib.o: zlib.h zconf.h gzguts.h
60gzread.o: zlib.h zconf.h gzguts.h
61gzwrite.o: zlib.h zconf.h gzguts.h
62inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
63inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
64infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
65inftrees.o: zutil.h zlib.h zconf.h inftrees.h
66minigzip.o: zlib.h zconf.h
67trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
68uncompr.o: zlib.h zconf.h
69zutil.o: zutil.h zlib.h zconf.h
70