summaryrefslogtreecommitdiff
path: root/scripts/makefile.bor
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2014-06-05 09:53:19 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2014-06-05 10:01:04 -0500
commitd21eae44e732e5c5d426d1665bbc9d233e25f137 (patch)
treea2301aeae45ec6af79e522fe04c10017d46c67a4 /scripts/makefile.bor
parent1cc02f0395aa85e71927c5a45b4bc8091a7d9ef8 (diff)
downloadlibpng-d21eae44e732e5c5d426d1665bbc9d233e25f137.tar.gz
[master] Imported from libpng-1.6.11.tar
Diffstat (limited to 'scripts/makefile.bor')
-rw-r--r--scripts/makefile.bor13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/makefile.bor b/scripts/makefile.bor
index a032510d4..254de89e8 100644
--- a/scripts/makefile.bor
+++ b/scripts/makefile.bor
@@ -12,10 +12,11 @@
## Where zlib.h, zconf.h and zlib_MODEL.lib are
ZLIB_DIR=..\zlib
-## Compiler, linker and lib stuff
+## Compiler, linker, librarian and other tools
CC=bcc
LD=bcc
LIB=tlib
+CP=copy
!ifndef MODEL
MODEL=l
@@ -57,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 = \
@@ -110,9 +115,9 @@ LIBNAME=libpng$(MODEL).lib
all: libpng pngtest
-# try !inlude scripts\pnglibconf.mak for more options
-pnglibconf.h: scripts\pnglibconf.h.prebuilt
- copy scripts\pnglibconf.h.prebuilt $@
+# try !include scripts\pnglibconf.mak for more options
+pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
+ $(CP) $< $@
libpng: $(LIBNAME)