aboutsummaryrefslogtreecommitdiff
path: root/scripts/makefile.bc32
diff options
context:
space:
mode:
authorCosmin Truta <ctruta@gmail.com>2014-03-22 13:13:11 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2014-03-22 13:13:11 -0500
commit9ab7b4ca58e6c9be2b7c6ee602a9c5ebe47ac838 (patch)
tree6fe0c08357de0d41f263d2410f8bb5945c603b07 /scripts/makefile.bc32
parentae6eaa89e5bdf2cc2239103a02978d0b61d916c0 (diff)
downloadlibpng-9ab7b4ca58e6c9be2b7c6ee602a9c5ebe47ac838.tar.gz
[libpng16] Allow an easy replacement of the default pre-built configuration
header with a custom header, via the make PNGLIBCONF_H_PREBUILT macro.
Diffstat (limited to 'scripts/makefile.bc32')
-rw-r--r--scripts/makefile.bc328
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/makefile.bc32 b/scripts/makefile.bc32
index 26b8b1f9f..6fece9cd8 100644
--- a/scripts/makefile.bc32
+++ b/scripts/makefile.bc32
@@ -50,6 +50,10 @@ CFLAGS=-O2 -d -k- -w $(TARGET_CPU) $(CDEBUG)
# -M generate map file
LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG)
+# Pre-built configuration
+# See scripts/pnglibconf.mak for more options
+PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
+
## Variables
OBJS = \
png.obj \
@@ -112,9 +116,7 @@ test: pngtest.exe
## Minor Targets
-# see scripts\pnglibconf.mak for how to make this file
-# with different options
-pnglibconf.h: scripts\pnglibconf.h.prebuilt
+pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
$(CP) $< $@
png.obj: png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h