Kill 2 undefined function warnings.
[blender-staging.git] / intern / guardedalloc / Makefile
index 9957d8aa417d527059643d7b12399280fdcacd16..702e7d5264f0efed7e3170dae23d3b3388da5692 100644 (file)
@@ -25,7 +25,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): Hans Lambermont
 #
 # ***** END GPL/BL DUAL LICENSE BLOCK *****
 # decimation main makefile.
@@ -46,7 +46,11 @@ install: all debug
        @[ -d $(NAN_GUARDEDALLOC)/include ] || mkdir $(NAN_GUARDEDALLOC)/include
        @[ -d $(NAN_GUARDEDALLOC)/lib ] || mkdir $(NAN_GUARDEDALLOC)/lib
        @[ -d $(NAN_GUARDEDALLOC)/lib/debug ] || mkdir $(NAN_GUARDEDALLOC)/lib/debug
-       cp -f $(DIR)/libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/
-       cp -f $(DIR)/debug/libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/debug/
-       cp -f *.h $(NAN_GUARDEDALLOC)/include/
+       @../tools/cpifdiff.sh $(DIR)/libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/
+       @../tools/cpifdiff.sh $(DIR)/debug/libguardedalloc.a $(NAN_GUARDEDALLOC)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
+       ranlib $(NAN_GUARDEDALLOC)/lib/debug/libguardedalloc.a
+endif
+       @../tools/cpifdiff.sh *.h $(NAN_GUARDEDALLOC)/include/