1*a67afe4dSAndroid Build Coastguard Worker# Commodore Amiga Makefile 2*a67afe4dSAndroid Build Coastguard Worker# makefile for libpng and SAS C V6.5x compiler 3*a67afe4dSAndroid Build Coastguard Worker# Copyright (C) 1995-2000 Wolf Faust 4*a67afe4dSAndroid Build Coastguard Worker# 5*a67afe4dSAndroid Build Coastguard Worker# This code is released under the libpng license. 6*a67afe4dSAndroid Build Coastguard Worker# For conditions of distribution and use, see the disclaimer 7*a67afe4dSAndroid Build Coastguard Worker# and license in png.h 8*a67afe4dSAndroid Build Coastguard Worker# 9*a67afe4dSAndroid Build Coastguard Worker# Location/path of zlib include files 10*a67afe4dSAndroid Build Coastguard WorkerZLIB=/zlib 11*a67afe4dSAndroid Build Coastguard Worker#compiler 12*a67afe4dSAndroid Build Coastguard WorkerCC=sc 13*a67afe4dSAndroid Build Coastguard Worker#compiler flags 14*a67afe4dSAndroid Build Coastguard Worker# WARNING: a bug in V6.51 causes bad code with OPTGO 15*a67afe4dSAndroid Build Coastguard Worker# So use V6.55 or set NOOPTGO!!!!!!!!! 16*a67afe4dSAndroid Build Coastguard WorkerCFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\ 17*a67afe4dSAndroid Build Coastguard Worker OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \ 18*a67afe4dSAndroid Build Coastguard Worker DEFINE=PNG_INTERNAL 19*a67afe4dSAndroid Build Coastguard Worker#linker flags 20*a67afe4dSAndroid Build Coastguard WorkerLDFLAGS= SD ND BATCH 21*a67afe4dSAndroid Build Coastguard Worker#link libs 22*a67afe4dSAndroid Build Coastguard WorkerLDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib 23*a67afe4dSAndroid Build Coastguard Worker# linker 24*a67afe4dSAndroid Build Coastguard WorkerLN= slink 25*a67afe4dSAndroid Build Coastguard Worker# file deletion command 26*a67afe4dSAndroid Build Coastguard WorkerRM= delete quiet 27*a67afe4dSAndroid Build Coastguard Worker# library (.lib) file creation command 28*a67afe4dSAndroid Build Coastguard WorkerAR= oml 29*a67afe4dSAndroid Build Coastguard Worker 30*a67afe4dSAndroid Build Coastguard Worker# Pre-built configuration 31*a67afe4dSAndroid Build Coastguard Worker# See scripts/pnglibconf.mak for more options 32*a67afe4dSAndroid Build Coastguard WorkerPNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 33*a67afe4dSAndroid Build Coastguard Worker 34*a67afe4dSAndroid Build Coastguard WorkerOBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 35*a67afe4dSAndroid Build Coastguard Worker pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 36*a67afe4dSAndroid Build Coastguard Worker pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 37*a67afe4dSAndroid Build Coastguard Worker 38*a67afe4dSAndroid Build Coastguard Workerall: libpng.lib pngtest 39*a67afe4dSAndroid Build Coastguard Worker 40*a67afe4dSAndroid Build Coastguard Workerlibpng.lib: $(OBJS) 41*a67afe4dSAndroid Build Coastguard Worker-$(RM) libpng.lib 42*a67afe4dSAndroid Build Coastguard Worker$(AR) libpng.lib r $(OBJS) 43*a67afe4dSAndroid Build Coastguard Worker 44*a67afe4dSAndroid Build Coastguard Worker$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h 45*a67afe4dSAndroid Build Coastguard Worker 46*a67afe4dSAndroid Build Coastguard Workerpnglibconf.h: $(PNGLIBCONF_H_PREBUILT) 47*a67afe4dSAndroid Build Coastguard WorkerCOPY $(PNGLIBCONF_H_PREBUILT) TO pnglibconf.h 48*a67afe4dSAndroid Build Coastguard Worker 49*a67afe4dSAndroid Build Coastguard Workerpngtest: pngtest.o libpng.lib 50*a67afe4dSAndroid Build Coastguard Worker$(LN) <WITH < 51*a67afe4dSAndroid Build Coastguard Worker$(LDFLAGS) 52*a67afe4dSAndroid Build Coastguard WorkerTO pngtest 53*a67afe4dSAndroid Build Coastguard WorkerFROM LIB:c.o pngtest.o 54*a67afe4dSAndroid Build Coastguard WorkerLIB $(LDLIBS) 55*a67afe4dSAndroid Build Coastguard Worker< 56*a67afe4dSAndroid Build Coastguard Worker 57