From 6bcb9aa9966f10273ce083cee52af1896bddfd26 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 18 Dec 2006 06:14:23 +0000 Subject: tweaked things to allow for setting CPU-specific build flags svn path=/trunk/; revision=6937 --- packages/darwin_app/BUGS | 4 ---- packages/darwin_app/Makefile | 27 ++++++++++++++------------- 2 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 packages/darwin_app/BUGS (limited to 'packages/darwin_app') diff --git a/packages/darwin_app/BUGS b/packages/darwin_app/BUGS deleted file mode 100644 index 6fccfdc5..00000000 --- a/packages/darwin_app/BUGS +++ /dev/null @@ -1,4 +0,0 @@ - -- help menu seems to cause long pauses on some machine (the cause of the - problem is conjecture, and I haven't seen the problem in action -Hans) - diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 6962f15e..295f87ff 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -26,34 +26,34 @@ WISH_CONTENTS = "$(WISH)/Contents" TARGET_PLATFORM := $(shell uname -p) # base level optimizations -OPT_CFLAGS = -Os -funroll-loops -fomit-frame-pointer +#OPT_CFLAGS = -Os -funroll-loops -fomit-frame-pointer -# auto-vectorization in GCC 4.x (too buggy in 4.0, wait for 4.1) -#OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=3 +# auto-vectorization in GCC 4.x for CPUs with SIMD +OPT_CFLAGS += -ftree-vectorize -ftree-vectorizer-verbose=3 ifeq ($(TARGET_PLATFORM),i386) -OPT_CFLAGS += -march=pentium3 -msse -msse2 -mfpmath=sse +OPT_CFLAGS += -march=pentium4 -msse -msse2 -mfpmath=sse endif ifeq ($(TARGET_PLATFORM),powerpc) -# Package default, support older PowerPCs, but G4 (7450) is the most common -OPT_CFLAGS += -mcpu=powerpc -mtune=7450 -mpowerpc-gfxopt +# Package default, support older PowerPCs, but G3 is the most common +#OPT_CFLAGS += -mcpu=powerpc -mtune=G3 -# CPU-specific gleaned from http://developer.apple.com/releasenotes/DeveloperTools/RN-GCC4/ -# check this too: http://hpc.sourceforge.net/ +# CPU-specific gleaned from: +# http://developer.apple.com/releasenotes/DeveloperTools/RN-GCC4/ +# http://hpc.sourceforge.net/ # Generic PowerPC #OPT_CFLAGS += -mcpu=powerpc -mpowerpc # PowerPC 750 (G3) #OPT_CFLAGS += -mcpu=750 -mpowerpc-gfxopt # PowerPC 7400 (G4 <= 700Mhz) -#OPT_CFLAGS += -mcpu=7400 -faltivec -mpowerpc-gfxopt +#OPT_CFLAGS += -fast -fPIC -mcpu=G4 -mtune=G4 # PowerPC 7450 (G4 >= 533MHz) -#OPT_CFLAGS += -fPIC -mcpu=7450 -mtune=7450 -fast -faltivec -ffast-math -mpowerpc-gfxopt -# PowerPC G5 (gcc-3.3) -#OPT_CFLAGS += -fast -fPIC -faltivec -mpowerpc-gpopt -mpowerpc-gfxopt +OPT_CFLAGS += -fast -fPIC -mcpu=7450 -mtune=7450 +# PowerPC G5 (gcc-4.x) +#OPT_CFLAGS += -fast -fPIC endif - # these are sent to all of the various Makefiles so that they all copy their # output to the same directory tree DEST_PATHS = BUILDLAYOUT_DIR=$(BUILDLAYOUT_DIR) \ @@ -339,6 +339,7 @@ test_package: test_locations: @echo -------------------------------------------------- + @echo "OPT_CFLAGS: $(OPT_CFLAGS)" @echo "PD_VERSION: $(PD_VERSION)" @echo "PACKAGE_NAME: $(PACKAGE_NAME)" @echo "PD-EXTENDED_VERSION: $(PD-EXTENDED_VERSION)" -- cgit v1.2.1