Added extra ranlib on libary files after being copied to the lib tree for OSX only.
authorMaarten Gribnau <mail@maartengribnau.com>
Thu, 7 Nov 2002 22:41:42 +0000 (22:41 +0000)
committerMaarten Gribnau <mail@maartengribnau.com>
Thu, 7 Nov 2002 22:41:42 +0000 (22:41 +0000)
This saves other OSX developers the trouble of manually running ranlib.
This is not a good solution (because I don't know the correct one) but it works.
Maarten

intern/bmfont/Makefile
intern/bsp/Makefile
intern/decimation/Makefile
intern/ghost/Makefile
intern/guardedalloc/Makefile
intern/iksolver/Makefile
intern/keymaker/Makefile
intern/moto/Makefile
intern/string/Makefile

index 0da2a8442366ebb664363142f7cee054ad58e38d..037a55601adc5232ebe2b28f6a9ecd6d59843501 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_BMFONT)/lib/debug ] || mkdir $(NAN_BMFONT)/lib/debug
        cp -f $(DIR)/libbmfont.a $(NAN_BMFONT)/lib/
        cp -f $(DIR)/debug/libbmfont.a $(NAN_BMFONT)/lib/debug/
        @[ -d $(NAN_BMFONT)/lib/debug ] || mkdir $(NAN_BMFONT)/lib/debug
        cp -f $(DIR)/libbmfont.a $(NAN_BMFONT)/lib/
        cp -f $(DIR)/debug/libbmfont.a $(NAN_BMFONT)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_BMFONT)/lib/libbmfont.a
+       ranlib $(NAN_BMFONT)/lib/debug/libbmfont.a
+endif
        cp -f *.h $(NAN_BMFONT)/include/
 
        cp -f *.h $(NAN_BMFONT)/include/
 
index 371c43c848a96e9e39ef7f29ccdb677053b9e7a6..5d96867e3b13577b512a62a421ea25b0e5b8c424 100644 (file)
@@ -48,6 +48,10 @@ install: all debug
        @[ -d $(NAN_BSP)/lib/debug ] || mkdir $(NAN_BSP)/lib/debug
        cp -f $(DIR)/libbsp.a $(NAN_BSP)/lib/
        cp -f $(DIR)/debug/libbsp.a $(NAN_BSP)/lib/debug/
        @[ -d $(NAN_BSP)/lib/debug ] || mkdir $(NAN_BSP)/lib/debug
        cp -f $(DIR)/libbsp.a $(NAN_BSP)/lib/
        cp -f $(DIR)/debug/libbsp.a $(NAN_BSP)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_BSP)/lib/libbsp.a
+       ranlib $(NAN_BSP)/lib/debug/libbsp.a
+endif
        cp -f extern/*.h $(NAN_BSP)/include/
 
 
        cp -f extern/*.h $(NAN_BSP)/include/
 
 
index f0d9567a6182a5c8800fb1cadf9ce675c8ac6e9c..60df8dd8b15889e481bc99a8c1b32e40b91c325b 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_DECIMATION)/lib/debug ] || mkdir $(NAN_DECIMATION)/lib/debug
        cp -f $(DIR)/libdecimation.a $(NAN_DECIMATION)/lib/
        cp -f $(DIR)/debug/libdecimation.a $(NAN_DECIMATION)/lib/debug/
        @[ -d $(NAN_DECIMATION)/lib/debug ] || mkdir $(NAN_DECIMATION)/lib/debug
        cp -f $(DIR)/libdecimation.a $(NAN_DECIMATION)/lib/
        cp -f $(DIR)/debug/libdecimation.a $(NAN_DECIMATION)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_DECIMATION)/lib/libdecimation.a
+       ranlib $(NAN_DECIMATION)/lib/debug/libdecimation.a
+endif
        cp -f extern/*.h $(NAN_DECIMATION)/include/
 
        cp -f extern/*.h $(NAN_DECIMATION)/include/
 
index 5c78bea192c3b48b7a0c937ac42626b82f184f54..bfcd2d2f12a3f431a617ae07e4e3d0fc3cceca3a 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_GHOST)/lib/debug ] || mkdir $(NAN_GHOST)/lib/debug
        cp -f $(DIR)/libghost.a $(NAN_GHOST)/lib/
        cp -f $(DIR)/debug/libghost.a $(NAN_GHOST)/lib/debug/
        @[ -d $(NAN_GHOST)/lib/debug ] || mkdir $(NAN_GHOST)/lib/debug
        cp -f $(DIR)/libghost.a $(NAN_GHOST)/lib/
        cp -f $(DIR)/debug/libghost.a $(NAN_GHOST)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_GHOST)/lib/libghost.a
+       ranlib $(NAN_GHOST)/lib/debug/libghost.a
+endif
        cp -f *.h $(NAN_GHOST)/include/
 
        cp -f *.h $(NAN_GHOST)/include/
 
index 9957d8aa417d527059643d7b12399280fdcacd16..a63e9107cc821f01d3b2d82fcf35c14a8c9635e5 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -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/
        @[ -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/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
+       ranlib $(NAN_GUARDEDALLOC)/lib/debug/libguardedalloc.a
+endif
        cp -f *.h $(NAN_GUARDEDALLOC)/include/
 
        cp -f *.h $(NAN_GUARDEDALLOC)/include/
 
index 8cdb81ca780a245f3d1aa74d1645a8964fb3ee32..512de299fe79c9b7cb491d84fceec6b09cd3ff3e 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_IKSOLVER)/lib/debug ] || mkdir $(NAN_IKSOLVER)/lib/debug
        cp -f $(DIR)/libiksolver.a $(NAN_IKSOLVER)/lib/
        cp -f $(DIR)/debug/libiksolver.a $(NAN_IKSOLVER)/lib/debug/
        @[ -d $(NAN_IKSOLVER)/lib/debug ] || mkdir $(NAN_IKSOLVER)/lib/debug
        cp -f $(DIR)/libiksolver.a $(NAN_IKSOLVER)/lib/
        cp -f $(DIR)/debug/libiksolver.a $(NAN_IKSOLVER)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_IKSOLVER)/lib/libiksolver.a
+       ranlib $(NAN_IKSOLVER)/lib/debug/libiksolver.a
+endif
        cp -f extern/*.h $(NAN_IKSOLVER)/include/
 
        cp -f extern/*.h $(NAN_IKSOLVER)/include/
 
index 0ed35bc2b44d025ad9860a7881dfa6c488872ef2..21ff0c701926cd80d30c4ce7a3e33b1128f810a3 100644 (file)
@@ -73,6 +73,9 @@ install: all debug
        @[ -d $(LCGDIR)/$(LIBNAME)/lib ] || mkdir $(LCGDIR)/$(LIBNAME)/lib
        cp -f blenkey.h $(LCGDIR)/$(LIBNAME)/include/blenkey.h
        cp -f $(LIB_a) $(LCGDIR)/$(LIBNAME)/lib/
        @[ -d $(LCGDIR)/$(LIBNAME)/lib ] || mkdir $(LCGDIR)/$(LIBNAME)/lib
        cp -f blenkey.h $(LCGDIR)/$(LIBNAME)/include/blenkey.h
        cp -f $(LIB_a) $(LCGDIR)/$(LIBNAME)/lib/
+ifeq ($(OS),darwin)
+       ranlib $(LCGDIR)/$(LIBNAME)/lib/lib$(LIBNAME).a
+endif
 
 $(DIR)/$(DEBUG_DIR)keyloader: $(LOADER_OBJS) $(LIB_a)
        $(CC) $(LDFLAGS) -o $@ $(LOADER_OBJS) $(LIB_a) $(LIBS)
 
 $(DIR)/$(DEBUG_DIR)keyloader: $(LOADER_OBJS) $(LIB_a)
        $(CC) $(LDFLAGS) -o $@ $(LOADER_OBJS) $(LIB_a) $(LIBS)
index 97b4b321d992614581c318f808d1c04e29ccf48e..927b87bad24afb95f9cba10070cd7247a7626d9a 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_MOTO)/lib/debug ] || mkdir $(NAN_MOTO)/lib/debug
        cp -f $(DIR)/libmoto.a $(NAN_MOTO)/lib/
        cp -f $(DIR)/debug/libmoto.a $(NAN_MOTO)/lib/debug/
        @[ -d $(NAN_MOTO)/lib/debug ] || mkdir $(NAN_MOTO)/lib/debug
        cp -f $(DIR)/libmoto.a $(NAN_MOTO)/lib/
        cp -f $(DIR)/debug/libmoto.a $(NAN_MOTO)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_MOTO)/lib/libmoto.a
+       ranlib $(NAN_MOTO)/lib/debug/libmoto.a
+endif
        cp -f include/*.h $(NAN_MOTO)/include/
 
        cp -f include/*.h $(NAN_MOTO)/include/
 
index b2ae80e2179e3b0a29edaaba21260450532c450b..1079e3a281a8956fe5d4b02fd3a9311b0f645693 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_STRING)/lib/debug ] || mkdir $(NAN_STRING)/lib/debug
        cp -f $(DIR)/libstring.a $(NAN_STRING)/lib/
        cp -f $(DIR)/debug/libstring.a $(NAN_STRING)/lib/debug/
        @[ -d $(NAN_STRING)/lib/debug ] || mkdir $(NAN_STRING)/lib/debug
        cp -f $(DIR)/libstring.a $(NAN_STRING)/lib/
        cp -f $(DIR)/debug/libstring.a $(NAN_STRING)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_STRING)/lib/libstring.a
+       ranlib $(NAN_STRING)/lib/debug/libstring.a
+endif
        cp -f *.h $(NAN_STRING)/include/
 
        cp -f *.h $(NAN_STRING)/include/