aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-27 23:13:49 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-27 23:13:49 +0000
commitb03585f4bd2c102d0de0ef01e3251c9a0c519a90 (patch)
tree04b8baa23fd2d63b5e170d402027425106ff4d11 /externals
parentf58ae2fef6634bf52dc51120d9e0fac34c9e892d (diff)
added CPU optimization suggestions
svn path=/trunk/; revision=1778
Diffstat (limited to 'externals')
-rw-r--r--externals/build/darwin/makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/externals/build/darwin/makefile b/externals/build/darwin/makefile
index a2d5f341..33d3c76e 100644
--- a/externals/build/darwin/makefile
+++ b/externals/build/darwin/makefile
@@ -10,17 +10,25 @@ all: link.stamp $(EXTERNALS:.c=.pd_darwin)
#PDEXECUTABLE = /usr/local/bin/pd
PDEXECUTABLE = ../../../pd/bin/pd
-MACOSXCFLAGS = -DPD -Os -DUNIX -DMACOSX -Dunix \
- -Wall -W \
- -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow
-
-MACOSXINCLUDE = -I. -I.. -I../include
-
-MACOSXLINKFLAGS = -bundle -bundle_loader $(PDEXECUTABLE)
+# Pentium III or better
+#CPU_FLAGS = -march=pentium3
+# PowerPC G3
+#CPU_FLAGS = -mpowerpc-gpopt
+# PowerPC G4 (gcc-3.3)
+#CPU_FLAGS = -fast -mcpu=G4
+# PowerPC G5 (gcc-3.3)
+#CPU_FLAGS = -fast
+
+OPTIM_FLAGS = -O3 -funroll-loops -fomit-frame-pointer $(CPU_FLAGS)
+
+CFLAGS = -DPD -DUNIX -DMACOSX -Dunix $(OPTIM_FLAGS) \
+ -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow
+INCLUDES = -I. -I.. -I../include
+LDFLAGS = -bundle -bundle_loader $(PDEXECUTABLE)
%.pd_darwin: ../src/%.c
- $(CC) $(MACOSXCFLAGS) $(MACOSXINCLUDE) -o "$*.o" -c "../src/$*.c"
- $(CC) $(MACOSXLINKFLAGS) -o "$*.pd_darwin" "$*.o" -lc -lm \
+ $(CC) $(CFLAGS) $(INCLUDES) -o "$*.o" -c "../src/$*.c"
+ $(CC) $(LDFLAGS) -o "$*.pd_darwin" "$*.o" -lc -lm \
# `test -f $*.libs && cat $*.libs`
chmod a-x "$*.pd_darwin"
rm -f "$*.o"