smakefile.ppc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. # This code is released under the libpng license.
  6. # For conditions of distribution and use, see the disclaimer
  7. # and license in png.h
  8. CC = scppc
  9. CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
  10. OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
  11. LIBNAME = libpng.a
  12. AR = ppc-amigaos-ar
  13. AR_FLAGS = cr
  14. RANLIB = ppc-amigaos-ranlib
  15. LDFLAGS = -r -o
  16. LDLIBS = ../zlib/libzip.a LIB:scppc.a
  17. LN = ppc-amigaos-ld
  18. RM = delete quiet
  19. MKDIR = makedir
  20. OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \
  21. pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \
  22. pngwio.o pngmem.o
  23. all: $(LIBNAME) pngtest
  24. $(LIBNAME): $(OBJS)
  25. $(AR) $(AR_FLAGS) $@ $(OBJS)
  26. $(RANLIB) $@
  27. pngtest: pngtest.o $(LIBNAME)
  28. $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \
  29. LIB:end.o