]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/libpng/lib/contrib/scripts/makefile.bor
Update
[l4.git] / l4 / pkg / libpng / lib / contrib / scripts / makefile.bor
index 254de89e866893ff1536f9bd36b948db38fdc99b..6693772dbe6738703ee75fafc0fdd830a5ae63e6 100644 (file)
@@ -59,8 +59,10 @@ CFLAGS=-O2 -Z -X- -w -$(TARGET_CPU) $(MODEL_ARG) $(CDEBUG)
 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
+# See scripts\pnglibconf.mak for more options
+!ifndef PNGLIBCONF_H_PREBUILT
+PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
+!endif
 
 ## Variables
 
@@ -117,7 +119,7 @@ all: libpng pngtest
 
 # try !include scripts\pnglibconf.mak for more options
 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
-       $(CP) $< $@
+       $(CP) $(PNGLIBCONF_H_PREBUILT) $@
 
 libpng: $(LIBNAME)