[libpng15] Allow an easy replacement of the default pre-built configuration

header with a custom header, via the make PNGLIBCONF_H_PREBUILT macro.
This commit is contained in:
Cosmin Truta
2014-03-22 13:35:35 -05:00
committed by Glenn Randers-Pehrson
parent 4904cbce65
commit e66d9c2416
35 changed files with 172 additions and 64 deletions

View File

@@ -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