1 # Commodore Amiga Makefile
2 # makefile for libpng and SAS C V6.5x compiler
3 # Copyright (C) 1995-2000 Wolf Faust
5 # This code is released under the libpng license.
6 # For conditions of distribution and use, see the disclaimer
9 # Location/path of zlib include files
14 # WARNING: a bug in V6.51 causes bad code with OPTGO
15 # So use V6.55 or set NOOPTGO!!!!!!!!!
16 CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
17 OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
22 LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib
25 # file deletion command
27 # library (.lib) file creation command
29 # make directory command
32 # Pre-built configuration
33 # See scripts/pnglibconf.mak for more options
34 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
36 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
37 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
38 pngwtran.o pngmem.o pngerror.o pngpread.o
40 all: libpng.lib pngtest
44 $(AR) libpng.lib r $(OBJS)
46 $(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
48 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
49 COPY $(PNGLIBCONF_H_PREBUILT) TO pnglibconf.h
51 pngtest: pngtest.o libpng.lib
55 FROM LIB:c.o pngtest.o