aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-03-24 22:47:31 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-03-24 22:47:31 +0000
commit5b830ab4cbbe6526d045c26638ef87521d39db25 (patch)
treeec5363dbdcd98316ac7325b442ba9cf8f2e0604d
parent59c5b998a07b77fe9c7405a79fa859165f7906f3 (diff)
added include path for Pd-extended.app include folder to include path, after the -I$(PD_PATH)/src/ so it'll only use the headers inside the Pd-extended.app if the source is not specified
svn path=/trunk/externals/motex/; revision=13263
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5c183b8..4c2b1c2 100644
--- a/Makefile
+++ b/Makefile
@@ -66,7 +66,8 @@ ifeq ($(UNAME),Darwin)
ISYSROOT = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk
IPHONE_CFLAGS = -miphoneos-version-min=3.0 $(ISYSROOT) -arch armv6
OPT_CFLAGS = -fast -funroll-loops -fomit-frame-pointer
- CFLAGS := $(IPHONE_CFLAGS) $(OPT_CFLAGS) $(CFLAGS)
+ CFLAGS := $(IPHONE_CFLAGS) $(OPT_CFLAGS) $(CFLAGS) \
+ -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += -arch armv6 -bundle -undefined dynamic_lookup $(ISYSROOT)
LIBS += -lc
STRIP = strip -x
@@ -78,7 +79,8 @@ ifeq ($(UNAME),Darwin)
OS = macosx
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4
- CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include
+ CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \
+ -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib
# if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)