aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
Diffstat (limited to 'externals')
-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"