aboutsummaryrefslogtreecommitdiff
path: root/project/makefiles-local/Makefile.local.mac
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2022-07-09 11:48:24 +0200
committerWiimm <wiimm@wiimm.de>2022-07-09 11:48:24 +0200
commit06ff18cd020779c226f7c25d22016e06b898f303 (patch)
treeb5c12ca4c6b9b0c86e63d2b6a965b8bd74dd0d86 /project/makefiles-local/Makefile.local.mac
parentf30e94a61fdc9fb13fd1fbd8b75502fedf5a2f71 (diff)
SZS v2.28a.beta
Diffstat (limited to 'project/makefiles-local/Makefile.local.mac')
-rw-r--r--project/makefiles-local/Makefile.local.mac38
1 files changed, 25 insertions, 13 deletions
diff --git a/project/makefiles-local/Makefile.local.mac b/project/makefiles-local/Makefile.local.mac
index fb313a2..fab8dc0 100644
--- a/project/makefiles-local/Makefile.local.mac
+++ b/project/makefiles-local/Makefile.local.mac
@@ -6,10 +6,10 @@ CFLAGS += -Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member
#-----------------------------------------------------------------------------
.PHONY : mac-distrib
-mac-distrib: mac1 doc $(INSTALL_SCRIPTS) gen-mac-distrib
+mac-distrib: mac1x doc $(INSTALL_SCRIPTS) gen-mac-distrib
-.PHONY : mac1
-mac1: mac-x86_64
+.PHONY : mac1x
+mac1x: mac-x86_64
@echo
@echo "----- building universal binaries -----"
@@ -21,30 +21,30 @@ mac1: mac-x86_64
@rm -rf bin/x86_64
@echo "done"
-.PHONY : mac2
-mac2: mac-i386 mac-x86_64
+.PHONY : mac1
+mac1: mac-arm
@echo
@echo "----- building universal binaries -----"
@for i in $(MAIN_TOOLS); do \
- lipo -create bin/i386/$${i} bin/x86_64/$${i} -output $${i}; \
+ lipo -create bin/arm/$${i} -output $${i}; \
cp -p $${i} bin/$${i}; \
done
- @rm -rf bin/i386 bin/x86_64
+ @rm -rf bin/arm
@echo "done"
-.PHONY : mac3
-mac3: mac-i386 mac-x86_64 mac-ppc
+.PHONY : mac2
+mac2: mac-x86_64 mac-arm
@echo
@echo "----- building universal binaries -----"
@for i in $(MAIN_TOOLS); do \
- lipo -create bin/ppc/$${i} bin/i386/$${i} bin/x86_64/$${i} -output $${i}; \
+ lipo -create bin/x86_64/$${i} bin/arm/$${i} -output $${i}; \
cp -p $${i} bin/$${i}; \
- done;
- @rm -rf bin/ppc bin/i386 bin/x86_64
+ done
+ @rm -rf bin/x86_64 bin/arm
@echo "done"
#-----------------------------------------------------------------------------
@@ -74,12 +74,24 @@ mac-i386:
mac-x86_64:
@echo
@echo "----- building X86-64 [SDK $(SDKVERSION)] -----"
- @XFLAGS="-arch x86_64 -mfpmath=sse" make clean all
+# @XFLAGS="-arch x86_64 -mfpmath=sse" make clean all
+ @XFLAGS="-target x86_64-apple-macos10.12" make clean all
@mkdir -p bin/x86_64
@mv $(MAIN_TOOLS) bin/x86_64
#-----------------------------------------------------------------------------
+.PHONY : mac-arm
+mac-arm:
+ @echo
+ @echo "----- building arm [SDK $(SDKVERSION)] -----"
+# @XFLAGS="-arch arm -mfpmath=sse" make clean all
+ @XFLAGS="-target arm64-apple-macos11" make clean all
+ @mkdir -p bin/arm
+ @mv $(MAIN_TOOLS) bin/arm
+
+#-----------------------------------------------------------------------------
+
.PHONY : gen-mac-distrib
gen-mac-distrib: