From 0b895201efafe221b4c696e9ee87c55f695f3c8b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 28 May 2004 04:34:43 +0000 Subject: added more optimizition suggestions for various CPUs svn path=/trunk/; revision=1783 --- externals/build/linux/makefile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/externals/build/linux/makefile b/externals/build/linux/makefile index 49675bd9..fe03140d 100644 --- a/externals/build/linux/makefile +++ b/externals/build/linux/makefile @@ -12,16 +12,26 @@ all: $(EXTERNALS:.c=.pd_linux) .SUFFIXES: .pd_linux +# AMD Athlon XP K7 +#CPU_FLAGS = -O3 -march=athlon-xp -m3dnow -msse -mfpmath=sse + +# Generic i386 (tune for 686, since that's about the bottom these days) +CPU_FLAGS = -O2 -mcpu=i686 # Pentium III or better -#CPU_FLAGS = -march=pentium3 -# PowerPC G3 -#CPU_FLAGS = -mpowerpc-gpopt -# PowerPC G4 -#CPU_FLAGS = -mpowerpc-gpopt -mcpu=7450 -maltivec +#CPU_FLAGS = -O3 -march=pentium3 +# Pentium 4 or better +#CPU_FLAGS = -O3 -march=pentium4 + +# PowerPC 750 (G3) +#CPU_FLAGS = -O3 -mpowerpc-gpopt -mcpu=750 +# PowerPC 7400 (G4 <= 700MHz) +#CPU_FLAGS = -O3 -mpowerpc-gpopt -mcpu=7400 -maltivec +# PowerPC 7450 (G4 >= 533Mhz) +#CPU_FLAGS = -O3 -mpowerpc-gpopt -mcpu=7450 -maltivec # PowerPC G5 -#CPU_FLAGS = -mpowerpc64 -maltivec -falign-functions=32 -falign-labels=32 -falign-loops=32 -falign-jumps=32 +#CPU_FLAGS = -O3 -mpowerpc64 -maltivec -falign-functions=32 -falign-labels=32 -falign-loops=32 -falign-jumps=32 -OPTIM_FLAGS = -O3 -funroll-loops -fomit-frame-pointer $(CPU_FLAGS) +OPTIM_FLAGS = -funroll-loops -fomit-frame-pointer $(CPU_FLAGS) CFLAGS = -fPIC -DPD -DUNIX $(OPTIM_FLAGS) \ -Wall -W -Wshadow -Wstrict-prototypes \ -- cgit v1.2.1