diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-07-21 00:22:52 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-07-21 00:22:52 +0000 |
commit | 4a4e4e0747175848f1a51b20e472334c1e8f052d (patch) | |
tree | 6846303f888be1fc1338c59902271ba7e3f951a9 /packages/darwin_app/Makefile | |
parent | 6768962545c5e0060cb2974453736a9a83c9ba12 (diff) |
more work on centralizing the CPU optimization flags. With GNU/Linux on PowerPC and Mac OS X on Intel, things are becoming more complicated... ;)
svn path=/trunk/; revision=5389
Diffstat (limited to 'packages/darwin_app/Makefile')
-rw-r--r-- | packages/darwin_app/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 1ea9e05e..3768c4a9 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -30,8 +30,9 @@ WISH_CONTENTS = "$(WISH)/Contents" include $(BUILDLAYOUT_DIR)/Makefile.buildlayout -# base level optimizations -OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer + +# which CPU to compile for +TARGET_PLATFORM := $(shell uname -p) # CPU-specific gleaned from http://developer.apple.com/releasenotes/DeveloperTools/GCC3.html # check this too: http://hpc.sourceforge.net/ @@ -46,8 +47,13 @@ OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer # PowerPC G5 (gcc-3.3) #OPT_CFLAGS += -fast -fPIC -faltivec -mpowerpc-gpopt -mpowerpc-gfxopt -# Package default, support older PowerPCs, but G4 (7450) is the most common -OPT_CFLAGS += -mcpu=powerpc -mtune=7450 -mpowerpc-gfxopt +# auto-vectorization would be nice: +# http://gcc.gnu.org/projects/tree-ssa/vectorization.html + +ifeq ($(TARGET_PLATFORM),powerpc) + # Package default, support older PowerPCs, but G4 (7450) is the most common + OPT_CFLAGS += -mcpu=powerpc -mtune=7450 -mpowerpc-gfxopt +endif # these are sent to all of the various Makefiles so that they all copy their |