aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-16 22:03:43 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-16 22:03:43 +0000
commitc406fb5f59b402b2662d80723017cde484bd615f (patch)
treef6ffdaa3f76c1ebe846d89844a8effc5814c3d7d /externals/Makefile
parent69d082388003b2d42c21d2fbae645dff713f8959 (diff)
first stab at porting the Max aka.wiiremote object. it builds now, but I don't think it works
svn path=/trunk/; revision=6923
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/externals/Makefile b/externals/Makefile
index b54b25cc..a817a2b2 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -2086,6 +2086,51 @@ vbap_clean:
#------------------------------------------------------------------------------#
+# WIIREMOTE
+WIIREMOTE_NAME=wiiremote
+WIIREMOTE_SRC := $(wildcard $(externals_src)/io/wiiremote/*.c)
+
+WIIREMOTE_OBJECTS := $(WIIREMOTE_SRC:.c=.o)
+$(WIIREMOTE_OBJECTS) : %.o : %.c
+ $(CC) $(CFLAGS) -o "$*.o" -c "$*.c"
+
+$(externals_src)/io/wiiremote/wiiremote.$(EXTENSION): $(WIIREMOTE_OBJECTS)
+ $(CC) $(LDFLAGS) -o $(externals_src)/io/wiiremote/wiiremote.$(EXTENSION) \
+ $(WIIREMOTE_OBJECTS) -weak_framework IOBluetooth \
+ -weak_framework CoreFoundation
+# $(STRIP) $(externals_src)/io/wiiremote/wiiremote.$(EXTENSION)
+
+wiiremote: $(externals_src)/io/wiiremote/wiiremote.$(EXTENSION)
+
+wiiremote_install: wiiremote
+ install -d $(objectsdir)/$(WIIREMOTE_NAME)
+ $(scripts_src)/generate-libdir-metafile.sh $(objectsdir) $(WIIREMOTE_NAME) \
+ --author "DarwiinRemote: Hiroako Kimura, Max object: Masayuki Akamatsu, Pd port: Hans-Christoph Steiner" \
+ --description "support for the Nintendo Wii Remote" \
+ --license "BSD-style"
+ install -p $(WIIREMOTE_OBJECTS:.c=.$(EXTENSION)) $(objectsdir)/$(WIIREMOTE_NAME)
+# install -d $(helpdir)/$(WIIREMOTE_NAME)
+# install -p $(externals_src)/io/wiiremote/*.pd \
+# $(helpdir)/$(WIIREMOTE_NAME)
+# install -d $(manualsdir)/$(WIIREMOTE_NAME)
+# install -p $(externals_src)/io/wiiremote/manual.txt \
+# $(manualsdir)/$(WIIREMOTE_NAME)
+ install -d $(readmesdir)
+ install -p $(externals_src)/io/wiiremote/COPYRIGHT.txt \
+ $(readmesdir)/$(WIIREMOTE_NAME).txt
+# install -d $(examplesdir)/$(WIIREMOTE_NAME)
+# install -p $(externals_src)/io/wiiremote/examples/*.pd \
+# $(examplesdir)/$(WIIREMOTE_NAME)
+
+wiiremote_clean:
+ -rm -f -- $(WIIREMOTE_OBJECTS:.c=.$(EXTENSION))
+ -rm -f -- $(WIIREMOTE_OBJECTS:.c=.o)
+ -rm -f -- $(externals_src)/io/wiiremote/*.bak
+ -rm -f -- $(externals_src)/io/wiiremote/*.*~
+
+
+
+#------------------------------------------------------------------------------#
# Zexy
ZEXY_NAME = zexy
ZEXY_OBJECTS := $(wildcard $(externals_src)/zexy/src/[a-vxy0]*.c) \