aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-30 21:27:40 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-30 21:27:40 +0000
commit7e39118886845825b16ccd3bb65edd7fae5284f3 (patch)
tree8e8e33c58347f88cd93a0e9776636f5ae74a6242 /externals
parentfada33915abdf52dd845d6bcedcf41818ba5d2c3 (diff)
added C++ pdvjtools objects to install list; setup Universal/Fat compiling for aka.wiiremote
svn path=/trunk/; revision=9950
Diffstat (limited to 'externals')
-rw-r--r--externals/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/externals/Makefile b/externals/Makefile
index 31d8216d..7a74d0d7 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -48,6 +48,10 @@ LDFLAGS =
LIBS = -lm
ifeq ($(OS_NAME),darwin)
+# 10.4 Tiger
+ FAT_FLAGS = -arch ppc -arch ppc64 -arch i386
+# 10.5 Leopard
+# FAT_FLAGS = -arch ppc -arch ppc7400 -arch ppc64 -arch i386 -arch x86_64
CFLAGS += -I/sw/include -I$(externals_src)/pdp/include -DMACOSX -DUNIX -Dunix
LDFLAGS += -bundle -bundle_loader $(pd_src)/bin/pd -undefined dynamic_lookup \
-L/sw/lib -weak_framework Carbon
@@ -277,10 +281,10 @@ AKA.WIIREMOTE_SRC := $(wildcard $(externals_src)/io/aka.wiiremote/*.c)
AKA.WIIREMOTE_OBJECTS := $(AKA.WIIREMOTE_SRC:.c=.o)
$(AKA.WIIREMOTE_OBJECTS) : %.o : %.c
- $(CC) $(CFLAGS) -o "$*.o" -c "$*.c"
+ $(CC) $(CFLAGS) $(FAT_FLAGS) -o "$*.o" -c "$*.c"
$(externals_src)/io/aka.wiiremote/akawiiremote.$(EXTENSION): $(AKA.WIIREMOTE_OBJECTS)
- $(CC) $(LDFLAGS) -o $(externals_src)/io/aka.wiiremote/aka.wiiremote.$(EXTENSION) \
+ $(CC) $(FAT_FLAGS) $(LDFLAGS) -o $(externals_src)/io/aka.wiiremote/akawiiremote.$(EXTENSION) \
$(AKA.WIIREMOTE_OBJECTS) -weak_framework IOBluetooth \
-weak_framework CoreFoundation
# $(STRIP) $(externals_src)/io/aka.wiiremote/aka.wiiremote.$(EXTENSION)
@@ -1228,7 +1232,7 @@ hidio: $(externals_src)/io/hidio/hidio.$(EXTENSION)
hidio_install: hidio
install -d $(objectsdir)/$(HIDIO_NAME)
$(scripts_src)/generate-libdir-metafile.sh $(objectsdir) $(HIDIO_NAME) \
- --author "David Merrill <dmerrill@media.mit.edu>, Hans-Christoph Steiner <hans@at.or.at>, Olaf Matthes <olaf@nullmedium.de>" \
+ --author "Hans-Christoph Steiner <hans@at.or.at>, Olaf Matthes <olaf@nullmedium.de>, David Merrill <dmerrill@media.mit.edu>" \
--description "I/O for USB HID and other supported devices" \
--license "GNU GPLv2" \
--version "0.0"
@@ -2103,6 +2107,8 @@ pdvjtools_install: pdvjtools
--author "" \
--description "Pure Data Video Junk"
install -p $(PDVJTOOLS_OBJECTS:.c=.$(EXTENSION)) $(objectsdir)/$(PDVJTOOLS_NAME)
+ install -p $(PDVJTOOLS_CPP_OBJECTS:.cc=.$(EXTENSION)) \
+ $(objectsdir)/$(PDVJTOOLS_NAME)
install -d $(helpdir)/$(PDVJTOOLS_NAME)
install -p $(externals_src)/pdvjtools/*/*-help.pd \
$(helpdir)/$(PDVJTOOLS_NAME)