Initial revision
[silc.git] / lib / zlib / amiga / Makefile.pup
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
5 CC       = scppc
6 CFLAGS   = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
7            OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
8 LIBNAME  = libzip.a
9 AR       = ppc-amigaos-ar
10 AR_FLAGS = cr
11 RANLIB   = ppc-amigaos-ranlib
12 LDFLAGS  = -r -o
13 LDLIBS   = LIB:scppc.a
14 LN       = ppc-amigaos-ld
15 RM       = delete quiet
16
17 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
18        zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
19
20 TEST_OBJS = example.o minigzip.o
21
22 all: example minigzip
23
24 test: all
25         example
26         echo hello world | minigzip | minigzip -d
27
28 $(LIBNAME): $(OBJS)
29             $(AR) $(AR_FLAGS) $@ $(OBJS)
30             $(RANLIB) $@
31
32 example: example.o $(LIBNAME)
33         $(LN) $(LDFLAGS) example LIB:c_ppc.o example.o $(LIBNAME) $(LDLIBS) LIB:end.o
34
35 minigzip: minigzip.o $(LIBNAME)
36         $(LN) $(LDFLAGS) minigzip LIB:c_ppc.o minigzip.o $(LIBNAME) $(LDLIBS) LIB:end.o
37
38 clean:
39         $(RM) *.o example minigzip $(LIBNAME) foo.gz
40
41 zip:
42         zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
43           descrip.mms *.[ch]
44
45 tgz:
46         cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
47           zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
48
49 # DO NOT DELETE THIS LINE -- make depend depends on it.
50
51 adler32.o: zutil.h zlib.h zconf.h
52 compress.o: zlib.h zconf.h
53 crc32.o: zutil.h zlib.h zconf.h
54 deflate.o: deflate.h zutil.h zlib.h zconf.h
55 example.o: zlib.h zconf.h
56 gzio.o: zutil.h zlib.h zconf.h
57 infblock.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
58 infcodes.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h
59 inffast.o: zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
60 inflate.o: zutil.h zlib.h zconf.h infblock.h
61 inftrees.o: zutil.h zlib.h zconf.h inftrees.h
62 infutil.o: zutil.h zlib.h zconf.h inftrees.h infutil.h
63 minigzip.o: zlib.h zconf.h
64 trees.o: deflate.h zutil.h zlib.h zconf.h
65 uncompr.o: zlib.h zconf.h
66 zutil.o: zutil.h zlib.h zconf.h