aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-23 00:58:58 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-23 00:58:58 +0000
commit75d0c89e59441fe78621ce3865f05e0f36d118e7 (patch)
tree867f1eecaccd25901aa75c2d32f91070fb1ce129 /externals/Makefile
parentf0b252aa8c9d72a8259abbfbe5eb37814a13415d (diff)
libdir-ified boids
svn path=/trunk/; revision=14504
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile37
1 files changed, 8 insertions, 29 deletions
diff --git a/externals/Makefile b/externals/Makefile
index 036c0aa3..4333e6cb 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -128,7 +128,7 @@ CXXFLAGS = $(CFLAGS)
#
# WARNING! this MUST be all on one line because the automatic package
# building scripts rely on it being that way.
-LIB_TARGETS = adaptive arraysize bassemu bsaylor comport creb cxc cyclone earplug ekext ext13 freeverb ggee hcs iem_ambi iem_bin_ambi iemlib iemgui iemguts iem_adaptfilt iemmatrix iemxmlrpc iem_delay iem_roomsim iem_spec2 iem_tab jasch_lib loaders mapping markex maxlib mjlib moocow moonlib motex mrpeach oscx pan pdcontainer pddp pdogg plugin pmpd sigpack smlib tof unauthorized vanilla vbap windowing zexy
+LIB_TARGETS = adaptive arraysize bassemu boids bsaylor comport creb cxc cyclone earplug ekext ext13 freeverb ggee hcs iem_ambi iem_bin_ambi iemlib iemgui iemguts iem_adaptfilt iemmatrix iemxmlrpc iem_delay iem_roomsim iem_spec2 iem_tab jasch_lib loaders mapping markex maxlib mjlib moocow moonlib motex mrpeach oscx pan pdcontainer pddp pdogg plugin pmpd sigpack smlib tof unauthorized vanilla vbap windowing zexy
# this is for libraries that don't compile (yet) on all platforms
ifeq ($(OS_NAME),windows)
@@ -322,38 +322,17 @@ bassemu_clean:
make -C $(externals_src)/bassemu~ clean
-
#------------------------------------------------------------------------------#
# BOIDS
-BOIDS_NAME=boids
-BOIDS_OBJECTS := $(wildcard $(externals_src)/boids/boids*/*.c)
-boids: $(BOIDS_OBJECTS:.c=.$(EXTENSION))
-
-boids_install: boids
- install -d $(DESTDIR)$(objectsdir)/$(BOIDS_NAME)
- $(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(BOIDS_NAME) \
- --author "Eric Singer, A. Sier, and Jasch" \
- --description "2D and 3D boids flocking algorithm" \
- --license "GNU GPL 2" \
- --version ""
- install -p $(BOIDS_OBJECTS:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(BOIDS_NAME)
- install -p $(externals_src)/boids/boids*/*.pd \
- $(DESTDIR)$(objectsdir)/$(BOIDS_NAME)
-# install -d $(DESTDIR)$(manualsdir)/$(BOIDS_NAME)
-# install -p $(externals_src)/boids/manual.txt \
-# $(DESTDIR)$(manualsdir)/$(BOIDS_NAME)
- install -d $(DESTDIR)$(readmesdir)
- install -p $(externals_src)/boids/boids.readme.txt \
- $(DESTDIR)$(readmesdir)/$(BOIDS_NAME).txt
-# install -d $(DESTDIR)$(examplesdir)/$(BOIDS_NAME)
-# install -p $(externals_src)/boids/examples/*.pd \
-# $(DESTDIR)$(examplesdir)/$(BOIDS_NAME)
+boids:
+ make -C $(externals_src)/boids PD_PATH=$(pd_src) CFLAGS="$(CFLAGS)"
+
+boids_install:
+ make -C $(externals_src)/boids \
+ DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install
boids_clean:
- -rm -f -- $(BOIDS_OBJECTS:.c=.$(EXTENSION))
- -rm -f -- $(BOIDS_OBJECTS:.c=.o)
- -rm -f -- $(externals_src)/boids/*/*.bak
- -rm -f -- $(externals_src)/boids/*/*.*~
+ make -C $(externals_src)/boids clean
#------------------------------------------------------------------------------#