Imported Upstream version 1.6.13
[platform/upstream/libpng.git] / scripts / makefile.amiga
index 8bf0f45..16a4bd5 100644 (file)
@@ -6,8 +6,6 @@
 # For conditions of distribution and use, see the disclaimer
 # and license in png.h
 #
-# Note: Use #define PNG_READ_BIG_ENDIAN_SUPPORTED in pngconf.h
-#
 # Location/path of zlib include files
 ZLIB=/zlib
 #compiler
@@ -31,6 +29,10 @@ AR= oml
 # make directory command
 MKDIR= makedir
 
+# Pre-built configuration
+# See scripts/pnglibconf.mak for more options
+PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
+
 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
        pngwtran.o pngmem.o pngerror.o pngpread.o
@@ -41,6 +43,11 @@ libpng.lib: $(OBJS)
 -$(RM) libpng.lib
 $(AR) libpng.lib r $(OBJS)
 
+$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
+
+pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
+COPY $(PNGLIBCONF_H_PREBUILT) TO pnglibconf.h
+
 pngtest: pngtest.o libpng.lib
 $(LN) <WITH <
 $(LDFLAGS)