Update of /cvsroot/pure-data/packages/darwin_app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4574/darwin_app
Modified Files: Makefile Log Message: more work on centralizing the CPU optimization flags. With GNU/Linux on PowerPC and Mac OS X on Intel, things are becoming more complicated... ;)
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/packages/darwin_app/Makefile,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** Makefile 28 Apr 2006 16:09:24 -0000 1.37 --- Makefile 21 Jul 2006 00:22:52 -0000 1.38 *************** *** 31,36 **** include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
! # base level optimizations ! OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer
# CPU-specific gleaned from http://developer.apple.com/releasenotes/DeveloperTools/GCC3.html --- 31,37 ---- include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
! ! # which CPU to compile for ! TARGET_PLATFORM := $(shell uname -p)
# CPU-specific gleaned from http://developer.apple.com/releasenotes/DeveloperTools/GCC3.html *************** *** 47,52 **** #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
--- 48,58 ---- #OPT_CFLAGS += -fast -fPIC -faltivec -mpowerpc-gpopt -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