Update of /cvsroot/pure-data/packages/linux_make In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4574/linux_make
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/linux_make/Makefile,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Makefile 14 Jun 2006 15:03:42 -0000 1.9 --- Makefile 21 Jul 2006 00:22:52 -0000 1.10 *************** *** 18,46 **** include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
! ! # base level optimizations ! OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer ! # Generic x86 (tune for Pentium III, since that's more common these days) ! #OPT_CFLAGS += -mcpu=i386 -mtune=pentium3 ! OPT_CFLAGS += -mcpu=pentium
! # INTEL ! # ! # Pentium MMX ! #OPT_CFLAGS += -mcpu=pentium-mmx -mmmx ! # Pentium Pro ! #OPT_CFLAGS += -mcpu=pentiumpro -mmmx ! # Pentium II/Celeron ! #OPT_CFLAGS += -mfpmath=sse -mmmx -msse -mcpu=pentium2 ! # Pentium III/Celeron2 ! #OPT_CFLAGS += -mfpmath=sse -mmmx -msse -mcpu=pentium3 ! # Pentium 4 ! #OPT_CFLAGS += -mfpmath=sse -mmmx -msse -msse2 -mcpu=pentium4
- # AMD - # - # Athlon XP K7 - #OPT_CFLAGS = -O3 -mcpu=athlon-xp -m3dnow -msse -mfpmath=sse
# these are sent to all of the various Makefiles so that they all copy their --- 18,36 ---- include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
! TARGET_PLATFORM := $(shell uname -m) ! ifeq ($(TARGET_PLATFORM),i686) # Generic x86 (tune for Pentium III, since that's more common these days) ! OPT_CFLAGS += -march=i386 -mtune=pentium3 ! else ! ifeq ($(TARGET_PLATFORM),ppc) ! OPT_CFLAGS += -pipe -fsigned-char -mpowerpc-gfxopt ! else ! # more CPUs should go here ! OPT_CFLAGS += ! endif ! endif
! # lots more here: http://www.gentoo.se/docs/doc-cflags.php
# these are sent to all of the various Makefiles so that they all copy their