aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c454bdd..e0e340f 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ LDFLAGS = -bundle -bundle_loader $(PDEXECUTABLE) \
$(patsubst %,-framework %,$(FRAMEWORKS))
.SUFFIXES: .pd_darwin
-all: input_arrays pd_darwin
+all: input_arrays hid_utilities pd_darwin
pd_darwin: hid.pd_darwin
endif
@@ -31,9 +31,11 @@ endif
PDEXECUTABLE = ../../../pd/bin/pd
# generic optimization
-OPT_FLAGS = -O3
-# G4 7450 optimization (gives errors)
-#OPT_FLAGS = -fast -mcpu=7450 -maltivec
+#OPT_FLAGS = -O3 -ffast-math
+# G4 optimization
+OPT_FLAGS = -O3 -mcpu=7400 -faltivec -ffast-math -fPIC
+# faster G4 7450 optimization (gives errors)
+#OPT_FLAGS = -ffast -mcpu=7450 -faltivec -ffast-math -fPIC
CFLAGS = $(OPT_FLAGS) -Wall -W -Wno-shadow -Wstrict-prototypes -Wno-unused
@@ -48,11 +50,13 @@ INCLUDE = -I./ -I../../../pd/src -I./HID\ Utilities\ Source
.o.pd_linux:
ld $(LDFLAGS) -o $*.pd_linux *.o -lc -lm
strip --strip-unneeded $*.pd_linux
-# rm $*.o
input_arrays:
- ./make-arrays-from-input.h.pl
+ test -f input_arrays.h || ./make-arrays-from-input.h.pl
+hid_utilities:
+ test -f ./HID\ Utilities\ Source/build/libHIDUtilities.a || \
+ ( cd ./HID\ Utilities\ Source && pbxbuild )
clean: ; rm -f *.pd_* *.o *~ input_arrays.? doc/ev*-list.pd