You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.1 KiB

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