diff options
Diffstat (limited to 'externals/build/darwin/makefile')
-rw-r--r-- | externals/build/darwin/makefile | 26 |
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" |