1998-03-09 00:52:15 +00:00
|
|
|
# Amiga powerUP (TM) Makefile
|
|
|
|
# makefile for libpng and SAS C V6.58/7.00 PPC compiler
|
|
|
|
# Copyright (C) 1998 by Andreas R. Kleinert
|
2009-06-24 14:31:28 +00:00
|
|
|
#
|
2009-06-27 02:46:52 +00:00
|
|
|
# This code is released under the libpng license.
|
2009-06-25 18:43:50 +00:00
|
|
|
# For conditions of distribution and use, see the disclaimer
|
2009-06-24 15:27:36 +00:00
|
|
|
# and license in png.h
|
1998-03-09 00:52:15 +00:00
|
|
|
|
|
|
|
CC = scppc
|
|
|
|
CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
|
|
|
|
OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
|
|
|
|
LIBNAME = libpng.a
|
|
|
|
AR = ppc-amigaos-ar
|
|
|
|
AR_FLAGS = cr
|
|
|
|
RANLIB = ppc-amigaos-ranlib
|
|
|
|
LDFLAGS = -r -o
|
|
|
|
LDLIBS = ../zlib/libzip.a LIB:scppc.a
|
|
|
|
LN = ppc-amigaos-ld
|
|
|
|
RM = delete quiet
|
|
|
|
MKDIR = makedir
|
|
|
|
|
|
|
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \
|
2010-08-19 01:25:36 +00:00
|
|
|
pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \
|
|
|
|
pngwio.o pngmem.o
|
1998-03-09 00:52:15 +00:00
|
|
|
|
2009-05-02 20:36:08 +00:00
|
|
|
all: $(LIBNAME) pngtest
|
1998-03-09 00:52:15 +00:00
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) $(AR_FLAGS) $@ $(OBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
pngtest: pngtest.o $(LIBNAME)
|
|
|
|
$(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \
|
|
|
|
LIB:end.o
|