aboutsummaryrefslogtreecommitdiff
path: root/project/makefiles-local
diff options
context:
space:
mode:
authorWiimm <none>2020-07-27 08:47:13 +0200
committerWiimm <none>2020-07-27 08:47:13 +0200
commitff8c6fcdb1661b2243ec11f5d54378492e86a5d5 (patch)
tree51a5687dc70c5bcc4ce0e6205f9c5cd92691bba0 /project/makefiles-local
parentbcebc22fa66ccdaf1c8c4e4e3d47a644f87cb342 (diff)
r8226: test mac build
Diffstat (limited to '')
-rw-r--r--project/makefiles-local/Makefile.local.mac23
1 files changed, 13 insertions, 10 deletions
diff --git a/project/makefiles-local/Makefile.local.mac b/project/makefiles-local/Makefile.local.mac
index 419dac2..22e82e5 100644
--- a/project/makefiles-local/Makefile.local.mac
+++ b/project/makefiles-local/Makefile.local.mac
@@ -3,17 +3,21 @@
#-----------------------------------------------------------------------------
-SDKROOT = $(shell ls -d /Developer/SDKs/MacOSX* | tail -n1 )
-SDKVERSION = $(shell echo "$(SDKROOT)" | sed -E 's/.*MacOSX//; s/([0-9]*\.[0-9*]).*/\1/g' )
+.PHONY : mac-distrib
+mac-distrib: mac1 doc $(INSTALL_SCRIPTS) gen-mac-distrib
-CC = "gcc-4.0"
-CFLAGS += -mmacosx-version-min=${SDKVERSION} -isysroot ${SDKROOT}
-LDFLAGS += -mmacosx-version-min=${SDKVERSION} -isysroot ${SDKROOT}
+.PHONY : mac1
+mac1: mac-x86_64
-#-----------------------------------------------------------------------------
+ @echo
+ @echo "----- building universal binaries -----"
-.PHONY : mac-distrib
-mac-distrib: mac2 doc $(INSTALL_SCRIPTS) gen-mac-distrib
+ @for i in $(MAIN_TOOLS); do \
+ lipo -create bin/x86_64/$${i} -output $${i}; \
+ ln -f $${i} bin/$${i}; \
+ done
+ @rm -rf bin/x86_64
+ @echo "done"
.PHONY : mac2
mac2: mac-i386 mac-x86_64
@@ -85,12 +89,11 @@ gen-mac-distrib:
@cp -p $(DISTRIB_FILES) $(DISTRIB_PATH)
@ln -f $(MAIN_TOOLS) $(WDF_LINKS) $(DISTRIB_PATH)/bin
cp -p $(DOC_FILES) $(DISTRIB_PATH)/doc
-# @cp -p $(SCRIPTS)/*.{sh,txt} $(DISTRIB_PATH)/scripts
@chmod -R 755 $(DISTRIB_PATH)
-# @chmod a+x $(DISTRIB_PATH)/*.sh $(DISTRIB_PATH)/scripts/*.sh $(DISTRIB_PATH)/bin*/*
@chmod a+x $(DISTRIB_PATH)/*.sh $(DISTRIB_PATH)/bin*/*
@chmod -R a+X $(DISTRIB_PATH)
@tar -czf $(DISTRIB_PATH).tar.gz $(DISTRIB_PATH)
+ @ln $(DISTRIB_PATH).tar.gz latest-mac.tar.gz