Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame] | 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 |
Glenn Randers-Pehrson | 3e61d79 | 2009-06-24 09:31:28 -0500 | [diff] [blame] | 4 | # |
Glenn Randers-Pehrson | bfbf865 | 2009-06-26 21:46:52 -0500 | [diff] [blame] | 5 | # This code is released under the libpng license. |
Glenn Randers-Pehrson | c332bbc | 2009-06-25 13:43:50 -0500 | [diff] [blame] | 6 | # For conditions of distribution and use, see the disclaimer |
Glenn Randers-Pehrson | 037023b | 2009-06-24 10:27:36 -0500 | [diff] [blame] | 7 | # and license in png.h |
Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame] | 8 | |
| 9 | CC = scppc |
| 10 | CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \ |
| 11 | OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 |
| 12 | LIBNAME = libpng.a |
| 13 | AR = ppc-amigaos-ar |
| 14 | AR_FLAGS = cr |
| 15 | RANLIB = ppc-amigaos-ranlib |
| 16 | LDFLAGS = -r -o |
| 17 | LDLIBS = ../zlib/libzip.a LIB:scppc.a |
| 18 | LN = ppc-amigaos-ld |
| 19 | RM = delete quiet |
| 20 | MKDIR = makedir |
| 21 | |
| 22 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \ |
Glenn Randers-Pehrson | a313751 | 2010-08-18 20:25:36 -0500 | [diff] [blame] | 23 | pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \ |
| 24 | pngwio.o pngmem.o |
Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame] | 25 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 26 | all: $(LIBNAME) pngtest |
Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame] | 27 | |
| 28 | $(LIBNAME): $(OBJS) |
| 29 | $(AR) $(AR_FLAGS) $@ $(OBJS) |
| 30 | $(RANLIB) $@ |
| 31 | |
| 32 | pngtest: pngtest.o $(LIBNAME) |
| 33 | $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \ |
| 34 | LIB:end.o |