Added extra ranlib on libary files after being copied to the lib tree for OSX only.
[blender-staging.git] / intern / keymaker / Makefile
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/
+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)