aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-09-13 00:09:07 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-09-13 00:09:07 +0000
commitc66143d81612f0235cbc111be134580196a7b3e1 (patch)
tree87679e24fe6f10a262b776c7d09b5e3a77c15cbd
parente724f9f4cd61bcf3a2dfc36cedbed7f7905b2ad7 (diff)
ported to library template and debianized
svn path=/trunk/; revision=14100
-rw-r--r--externals/Makefile34
1 files changed, 6 insertions, 28 deletions
diff --git a/externals/Makefile b/externals/Makefile
index d2741813..0b500533 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -359,37 +359,15 @@ boids_clean:
#------------------------------------------------------------------------------#
# BSAYLOR
-BSAYLOR_NAME=bsaylor
-BSAYLOR_SRC := $(wildcard $(externals_src)/bsaylor/*~.c)
-BSAYLOR_OBJECTS := $(BSAYLOR_SRC:.c=.o)
-$(BSAYLOR_OBJECTS) : %.o : %.c
- $(CC) $(CFLAGS) -O2 -funroll-loops -fomit-frame-pointer -o "$*.o" -c "$*.c"
-
-bsaylor: $(BSAYLOR_OBJECTS:.o=.$(EXTENSION))
+bsaylor:
+ make -C $(externals_src)/iem/bsaylor/bsaylor
-bsaylor_install: bsaylor
- install -d $(DESTDIR)$(objectsdir)/$(BSAYLOR_NAME)
- $(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(BSAYLOR_NAME) \
- --author "Benjamin R. Saylor <bensaylor@fastmail.fm>" \
- --description "signal objects" \
- --license "GNU GPL 2" \
- --version ""
- install -p $(BSAYLOR_SRC:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(BSAYLOR_NAME)
- install -p $(externals_src)/bsaylor/help/*.pd \
- $(DESTDIR)$(objectsdir)/$(BSAYLOR_NAME)
-# install -d $(DESTDIR)$(manualsdir)/$(BSAYLOR_NAME)
- install -d $(DESTDIR)$(readmesdir)
- install -p $(externals_src)/bsaylor/README.txt \
- $(DESTDIR)$(readmesdir)/$(BSAYLOR_NAME).txt
-# install -d $(DESTDIR)$(examplesdir)/$(BSAYLOR_NAME)
-# install -p $(externals_src)/bsaylor/examples/*.pd \
-# $(DESTDIR)$(examplesdir)/$(BSAYLOR_NAME)
+bsaylor_install:
+ make -C $(externals_src)/iem/bsaylor/bsaylor \
+ DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install
bsaylor_clean:
- -rm -f -- $(externals_src)/bsaylor/*.$(EXTENSION)
- -rm -f -- $(externals_src)/bsaylor/*.o
- -rm -f -- $(externals_src)/bsaylor/*.bak
- -rm -f -- $(externals_src)/bsaylor/*.*~
+ make -C $(externals_src)/iem/bsaylor/bsaylor clean
#------------------------------------------------------------------------------#