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