fukasawa e60969
# Commodore Amiga Makefile
fukasawa e60969
# makefile for libpng and SAS C V6.5x compiler
fukasawa e60969
# Copyright (C) 1995-2000 Wolf Faust
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
# Location/path of zlib include files
fukasawa e60969
ZLIB=/zlib
fukasawa e60969
#compiler
fukasawa e60969
CC=sc
fukasawa e60969
#compiler flags
fukasawa e60969
# WARNING: a bug in V6.51 causes bad code with OPTGO
fukasawa e60969
#          So use V6.55 or set NOOPTGO!!!!!!!!!
fukasawa e60969
CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
fukasawa e60969
	OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
fukasawa e60969
	DEFINE=PNG_INTERNAL
fukasawa e60969
#linker flags
fukasawa e60969
LDFLAGS= SD ND BATCH
fukasawa e60969
#link libs
fukasawa e60969
LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib
fukasawa e60969
# linker
fukasawa e60969
LN= slink
fukasawa e60969
# file deletion command
fukasawa e60969
RM= delete quiet
fukasawa e60969
# library (.lib) file creation command
fukasawa e60969
AR= oml
fukasawa e60969
# make directory command
fukasawa e60969
MKDIR= makedir
fukasawa e60969
fukasawa e60969
# Pre-built configuration
fukasawa e60969
# See scripts/pnglibconf.mak for more options
fukasawa e60969
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
fukasawa e60969
fukasawa e60969
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
fukasawa e60969
	pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
fukasawa e60969
	pngwtran.o pngmem.o pngerror.o pngpread.o
fukasawa e60969
fukasawa e60969
all: libpng.lib pngtest
fukasawa e60969
fukasawa e60969
libpng.lib: $(OBJS)
fukasawa e60969
-$(RM) libpng.lib
fukasawa e60969
$(AR) libpng.lib r $(OBJS)
fukasawa e60969
fukasawa e60969
$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
fukasawa e60969
fukasawa e60969
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
fukasawa e60969
COPY $(PNGLIBCONF_H_PREBUILT) TO pnglibconf.h
fukasawa e60969
fukasawa e60969
pngtest: pngtest.o libpng.lib
fukasawa e60969
$(LN) 
fukasawa e60969
$(LDFLAGS)
fukasawa e60969
TO pngtest
fukasawa e60969
FROM LIB:c.o pngtest.o
fukasawa e60969
LIB $(LDLIBS)
fukasawa e60969
<
fukasawa e60969