aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-02-11 00:59:06 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-02-11 00:59:06 +0000
commit86df838b5cd57f28cb03e3ad2e924fe4232363d0 (patch)
treebcd50563abb9f35e69563471ef15438b29661906 /externals
parente44e722e7e0663b98a1b475fa159e3496806f5f8 (diff)
added io/xbee to the main makefile
svn path=/trunk/; revision=10755
Diffstat (limited to 'externals')
-rw-r--r--externals/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/externals/Makefile b/externals/Makefile
index ef2df2f1..eb5274bb 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -2680,6 +2680,41 @@ windowing_clean:
#------------------------------------------------------------------------------#
+# XBEE
+# this is installed into the "io" library
+XBEE_NAME=io
+XBEE_SRC := $(wildcard $(externals_src)/io/xbee/*.c)
+
+XBEE_OBJECTS := $(XBEE_SRC:.c=.o)
+$(XBEE_OBJECTS) : %.o : %.c
+ $(CC) $(CFLAGS) -o "$*.o" -c "$*.c"
+
+$(externals_src)/io/xbee/xbee_test.$(EXTENSION): $(XBEE_OBJECTS)
+ $(CC) $(LDFLAGS) -o $(externals_src)/io/xbee/xbee_test.$(EXTENSION) \
+ $(XBEE_OBJECTS)
+# $(STRIP) $(externals_src)/io/xbee/xbee_test.$(EXTENSION)
+
+xbee: $(externals_src)/io/xbee/xbee_test.$(EXTENSION)
+
+xbee_install: xbee
+ install -d $(objectsdir)/$(XBEE_NAME)
+ install -p $(externals_src)/io/xbee/xbee_test.$(EXTENSION) \
+ $(objectsdir)/$(XBEE_NAME)
+ install -d $(helpdir)/$(XBEE_NAME)
+ install -p $(externals_src)/io/xbee/*.pd \
+ $(helpdir)/$(XBEE_NAME)
+ install -d $(manualsdir)/$(XBEE_NAME)
+ install -p $(externals_src)/io/xbee/*.txt \
+ $(manualsdir)/$(XBEE_NAME)
+
+xbee_clean:
+ -rm -f -- $(externals_src)/io/xbee/xbee_test.$(EXTENSION)
+ -rm -f -- $(XBEE_OBJECTS:.c=.o)
+ -rm -f -- $(externals_src)/io/xbee/*.bak
+ -rm -f -- $(externals_src)/io/xbee/*.*~
+
+
+#------------------------------------------------------------------------------#
# Zexy
ZEXY_NAME = zexy
ZEXY_OBJECTS := $(wildcard $(externals_src)/zexy/src/[a-vxy0]*.c) \