summaryrefslogtreecommitdiff
path: root/scripts/makefile.bor
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.bor
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.bor')
-rw-r--r--scripts/makefile.bor8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/makefile.bor b/scripts/makefile.bor
index 70236d698..254de89e8 100644
--- a/scripts/makefile.bor
+++ b/scripts/makefile.bor
@@ -58,6 +58,10 @@ CFLAGS=-O2 -Z -X- -w -$(TARGET_CPU) $(MODEL_ARG) $(CDEBUG)
# -M generate map file
LDFLAGS=-M -L$(ZLIB_DIR) $(MODEL_ARG) $(LDEBUG)
+# Pre-built configuration
+# See scripts/pnglibconf.mak for more options
+PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
+
## Variables
OBJS = \
@@ -111,8 +115,8 @@ LIBNAME=libpng$(MODEL).lib
all: libpng pngtest
-# try !inlude scripts\pnglibconf.mak for more options
-pnglibconf.h: scripts\pnglibconf.h.prebuilt
+# try !include scripts\pnglibconf.mak for more options
+pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
$(CP) $< $@
libpng: $(LIBNAME)