Makefile.pup 1.9 KB

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