fukasawa e60969
# Amiga powerUP (TM) Makefile
fukasawa e60969
# makefile for libpng and SAS C V6.58/7.00 PPC compiler
fukasawa e60969
# Copyright (C) 1998 by Andreas R. Kleinert
fukasawa e60969
#
fukasawa e60969
# This code is released under the libpng license.
fukasawa e60969
# For conditions of distribution and use, see the disclaimer
fukasawa e60969
# and license in png.h
fukasawa e60969
fukasawa e60969
CC       = scppc
fukasawa e60969
CFLAGS   = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
fukasawa e60969
           OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
fukasawa e60969
LIBNAME  = libpng.a
fukasawa e60969
AR       = ppc-amigaos-ar
fukasawa e60969
AR_FLAGS = cr
fukasawa e60969
RANLIB   = ppc-amigaos-ranlib
fukasawa e60969
LDFLAGS  = -r -o
fukasawa e60969
LDLIBS   =  ../zlib/libzip.a LIB:scppc.a
fukasawa e60969
LN       = ppc-amigaos-ld
fukasawa e60969
RM       = delete quiet
fukasawa e60969
MKDIR    = makedir
fukasawa e60969
fukasawa e60969
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \
fukasawa e60969
       pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \
fukasawa e60969
       pngwio.o pngmem.o
fukasawa e60969
fukasawa e60969
all: $(LIBNAME) pngtest
fukasawa e60969
fukasawa e60969
$(LIBNAME): $(OBJS)
fukasawa e60969
            $(AR) $(AR_FLAGS) $@ $(OBJS)
fukasawa e60969
            $(RANLIB) $@
fukasawa e60969
fukasawa e60969
pngtest: pngtest.o $(LIBNAME)
fukasawa e60969
        $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \
fukasawa e60969
LIB:end.o