aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-06-28 21:32:30 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-06-28 21:32:30 +0000
commitbc7cefb9a1494094846def83a29b3bed7485e330 (patch)
tree2647de683d66b45c2fc19d515ed5ad5c26673887
parent9c6eedbeeda4d2f46d3360d06bcb942a1d3b6782 (diff)
- the sixaxis external now builds with Pd-extended, and outputs the raw
accelerometer data - for the rest of the data, use [hid] or [hidio] they happily coexist svn path=/trunk/; revision=10116
-rw-r--r--externals/Makefile36
1 files changed, 35 insertions, 1 deletions
diff --git a/externals/Makefile b/externals/Makefile
index 7a74d0d7..56a9c48a 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -138,7 +138,7 @@ else
LIB_TARGETS += hid pdp pidip gem2pdp aka.wiiremote iem16 apple
else
# GNU/Linux, BSD, IRIX, etc.
- LIB_TARGETS += hid pdp pidip gem2pdp hdspm_mixer iem16 postlude tclpd pdvjtools
+ LIB_TARGETS += hid pdp pidip gem2pdp hdspm_mixer iem16 postlude tclpd pdvjtools sixaxis
endif
endif
@@ -2284,6 +2284,40 @@ sigpack_clean:
#------------------------------------------------------------------------------#
+# SIXAXIS
+SIXAXIS_NAME=io
+SIXAXIS_OBJECTS = $(externals_src)/io/sixaxis/sixaxis.c
+sixaxis: $(SIXAXIS_OBJECTS:.c=.$(EXTENSION))
+
+sixaxis_install: sixaxis
+ install -d $(objectsdir)/$(SIXAXIS_NAME)
+ $(scripts_src)/generate-libdir-metafile.sh $(objectsdir) $(SIXAXIS_NAME) \
+ --author "Hans-Christoph Steiner" \
+ --description "supports the Sony SIXAXIS controller's accelerometer" \
+ --license "GNU GPL" \
+ --version "0.1"
+ install -p $(SIXAXIS_OBJECTS:.c=.$(EXTENSION)) $(objectsdir)/$(SIXAXIS_NAME)
+ install -d $(helpdir)/$(SIXAXIS_NAME)
+ install -p $(externals_src)/io/sixaxis/*.pd \
+ $(helpdir)/$(SIXAXIS_NAME)
+# install -d $(manualsdir)/$(SIXAXIS_NAME)
+# install -p $(externals_src)/io/sixaxis/manual.txt \
+# $(manualsdir)/$(SIXAXIS_NAME)
+# install -d $(readmesdir)
+# install -p $(externals_src)/io/sixaxis/README \
+# $(readmesdir)/$(SIXAXIS_NAME).txt
+# install -d $(examplesdir)/$(SIXAXIS_NAME)
+# install -p $(externals_src)/io/sixaxis/examples/*.pd \
+# $(examplesdir)/$(SIXAXIS_NAME)
+
+sixaxis_clean:
+ -rm -f -- $(SIXAXIS_OBJECTS:.c=.$(EXTENSION))
+ -rm -f -- $(SIXAXIS_OBJECTS:.c=.o)
+ -rm -f -- $(externals_src)/io/sixaxis/*.bak
+ -rm -f -- $(externals_src)/io/sixaxis/*.*~
+
+
+#------------------------------------------------------------------------------#
# SMLIB
SMLIB_NAME=smlib
# exclude SMlib.c since its just for the compiled library