From 09ebb18f2c469b0b87d8d5239d0c3a2eb7a038be Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 28 May 2004 00:40:51 +0000 Subject: added some suggestions for optimization flags svn path=/trunk/; revision=1779 --- externals/build/linux/makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'externals/build/linux') diff --git a/externals/build/linux/makefile b/externals/build/linux/makefile index 28796623..49675bd9 100644 --- a/externals/build/linux/makefile +++ b/externals/build/linux/makefile @@ -12,14 +12,25 @@ all: $(EXTERNALS:.c=.pd_linux) .SUFFIXES: .pd_linux -LINUXCFLAGS = -fPIC -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \ +# Pentium III or better +#CPU_FLAGS = -march=pentium3 +# PowerPC G3 +#CPU_FLAGS = -mpowerpc-gpopt +# PowerPC G4 +#CPU_FLAGS = -mpowerpc-gpopt -mcpu=7450 -maltivec +# PowerPC G5 +#CPU_FLAGS = -mpowerpc64 -maltivec -falign-functions=32 -falign-labels=32 -falign-loops=32 -falign-jumps=32 + +OPTIM_FLAGS = -O3 -funroll-loops -fomit-frame-pointer $(CPU_FLAGS) + +CFLAGS = -fPIC -DPD -DUNIX $(OPTIM_FLAGS) \ -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch -LINUXINCLUDE = -I. -I.. -I../include +INCLUDES = -I. -I.. -I../include %.pd_linux: ../src/%.c - $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o "$*.o" -c "../src/$*.c" + $(CC) $(CFLAGS) $(INCLUDES) -o "$*.o" -c "../src/$*.c" gcc -Wl,-export_dynamic -shared -o "$*.pd_linux" "$*.o" -lc -lm \ `test -f $*.libs && cat $*.libs` chmod a-x "$*.pd_linux" -- cgit v1.2.1