aboutsummaryrefslogtreecommitdiff
path: root/externals/build/linux
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-28 00:40:51 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-28 00:40:51 +0000
commit09ebb18f2c469b0b87d8d5239d0c3a2eb7a038be (patch)
treef5f0dd174cc7e41b95b1ded488e98f94e909c7ef /externals/build/linux
parentb03585f4bd2c102d0de0ef01e3251c9a0c519a90 (diff)
added some suggestions for optimization flags
svn path=/trunk/; revision=1779
Diffstat (limited to 'externals/build/linux')
-rw-r--r--externals/build/linux/makefile17
1 files changed, 14 insertions, 3 deletions
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"