From 1192c4575ea7afdf38e3fa0df4587a08620af11e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Jul 2020 10:00:46 +0200 Subject: SZS v2.18a --- project/makefiles-local/Makefile.local | 17 +++++ project/makefiles-local/Makefile.local.i386 | 10 +++ project/makefiles-local/Makefile.local.mac | 96 +++++++++++++++++++++++++++ project/makefiles-local/Makefile.local.x86_64 | 10 +++ 4 files changed, 133 insertions(+) create mode 100644 project/makefiles-local/Makefile.local create mode 100644 project/makefiles-local/Makefile.local.i386 create mode 100644 project/makefiles-local/Makefile.local.mac create mode 100644 project/makefiles-local/Makefile.local.x86_64 (limited to 'project/makefiles-local') diff --git a/project/makefiles-local/Makefile.local b/project/makefiles-local/Makefile.local new file mode 100644 index 0000000..612a98f --- /dev/null +++ b/project/makefiles-local/Makefile.local @@ -0,0 +1,17 @@ + +# this is a template for ../Makefile.local + +# copy this file to the main directory +# and remove appropriate comments (the leading '# ' of the include lines) + +#------------------------------------------------------------------------------ + +# Linux, 32 bit, i368 +# -include makefiles-local/Makefile.local.i386 + +# Linux, 64 bit, x86 +# -include makefiles-local/Makefile.local.x86_64 + +# Mac, universal binary +# -include makefiles-local/Makefile.local.mac + diff --git a/project/makefiles-local/Makefile.local.i386 b/project/makefiles-local/Makefile.local.i386 new file mode 100644 index 0000000..19db6a3 --- /dev/null +++ b/project/makefiles-local/Makefile.local.i386 @@ -0,0 +1,10 @@ + +# optimize linux i86 (32-bit) + +# to include this file +# => copy Makefile.local to main directory and remove appropriate comments + +#------------------------------------------------------------------------------ + +#CFLAGS += -mtune=generic +CFLAGS += -march=i686 diff --git a/project/makefiles-local/Makefile.local.mac b/project/makefiles-local/Makefile.local.mac new file mode 100644 index 0000000..419dac2 --- /dev/null +++ b/project/makefiles-local/Makefile.local.mac @@ -0,0 +1,96 @@ + +# optimize mac binaries and/or build universal binaries + +#----------------------------------------------------------------------------- + +SDKROOT = $(shell ls -d /Developer/SDKs/MacOSX* | tail -n1 ) +SDKVERSION = $(shell echo "$(SDKROOT)" | sed -E 's/.*MacOSX//; s/([0-9]*\.[0-9*]).*/\1/g' ) + +CC = "gcc-4.0" +CFLAGS += -mmacosx-version-min=${SDKVERSION} -isysroot ${SDKROOT} +LDFLAGS += -mmacosx-version-min=${SDKVERSION} -isysroot ${SDKROOT} + +#----------------------------------------------------------------------------- + +.PHONY : mac-distrib +mac-distrib: mac2 doc $(INSTALL_SCRIPTS) gen-mac-distrib + +.PHONY : mac2 +mac2: mac-i386 mac-x86_64 + + @echo + @echo "----- building universal binaries -----" + + @for i in $(MAIN_TOOLS); do \ + lipo -create bin/i386/$${i} bin/x86_64/$${i} -output $${i}; \ + ln -f $${i} bin/$${i}; \ + done + @rm -rf bin/i386 bin/x86_64 + @echo "done" + +.PHONY : mac3 +mac3: mac-i386 mac-x86_64 mac-ppc + + @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}; \ + ln -f $${i} bin/$${i}; \ + done; + @rm -rf bin/ppc bin/i386 bin/x86_64 + @echo "done" + +#----------------------------------------------------------------------------- + +.PHONY : mac-ppc +mac-ppc: + @echo + @echo "----- building PowerPC [SDK $(SDKVERSION)] -----" + @XFLAGS="-arch ppc -mcpu=powerpc" make clean all + @mkdir -p bin/ppc + @mv $(MAIN_TOOLS) bin/ppc + +#----------------------------------------------------------------------------- + +.PHONY : mac-i386 +mac-i386: + @echo + @echo "----- building i386 [SDK $(SDKVERSION)] -----" + @XFLAGS="-arch i386 -mfpmath=sse -march=prescott" make clean all + @mkdir -p bin/i386 + @mv $(MAIN_TOOLS) bin/i386 + + +#----------------------------------------------------------------------------- + +.PHONY : mac-x86_64 +mac-x86_64: + @echo + @echo "----- building X86-64 [SDK $(SDKVERSION)] -----" + @XFLAGS="-arch x86_64 -mfpmath=sse" make clean all + @mkdir -p bin/x86_64 + @mv $(MAIN_TOOLS) bin/x86_64 + +#----------------------------------------------------------------------------- + +.PHONY : gen-mac-distrib +gen-mac-distrib: + + @printf "$(LOGFORMAT)" create "$(DISTRIB_PATH)" "" + + @rm -rf $(DISTRIB_PATH) + @mkdir -p $(DISTRIB_PATH)/bin $(DISTRIB_PATH)/doc + + @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) + diff --git a/project/makefiles-local/Makefile.local.x86_64 b/project/makefiles-local/Makefile.local.x86_64 new file mode 100644 index 0000000..dc5b934 --- /dev/null +++ b/project/makefiles-local/Makefile.local.x86_64 @@ -0,0 +1,10 @@ + +# optimize linux x86 (64-bit) + +# to include this file +# => copy Makefile.local to main directory and remove appropriate comments + +#------------------------------------------------------------------------------ + +CFLAGS += -march=x86-64 + -- cgit v1.3.1