aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-09 04:57:10 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-09 04:57:10 +0000
commit5e3419f9128371ec6065af1a93b36f292b2830ec (patch)
treef1b492f19dcfe9da215bf3df5087331db5445f31 /externals/Makefile
parent3295861482261a1648d621cd01a9fda571f00f5e (diff)
fixed up creb to be a libdir
svn path=/trunk/; revision=4856
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile40
1 files changed, 28 insertions, 12 deletions
diff --git a/externals/Makefile b/externals/Makefile
index ec228e89..243cc3cf 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -177,7 +177,6 @@ buildsrc_install: $(helpdir) $(objectsdir)
$(externals_src)/creb/doc/*.pd \
$(helpdir)
install -p \
- $(externals_src)/creb/doc/examples/*.pd \
$(externals_src)/dfx/*/*.pd \
$(externals_src)/ggee/*/*-help.pd \
$(externals_src)/ggee/*/*.gif \
@@ -288,26 +287,43 @@ bsaylor_clean:
#------------------------------------------------------------------------------#
# CREB
CREB_NAME=creb
-#CREB_OBJECTS := $(wildcard $(externals_src)/creb/modules/*.c)
+# ead* don't compile yet...
+CREB_OBJECTS := $(wildcard $(externals_src)/creb/modules/[a-df-z]*.c)
+# haven't figured these out yet
#CREB_CXXOBJECTS := $(wildcard $(externals_src)/creb/modules++/*.cc)
-#creb: $(CREB_CXXOBJECTS:.cc=.$(EXTENSION)) $(CREB_OBJECTS:.c=.$(EXTENSION))
-creb:
+# kludge to make objects find the headers
+pre_creb:
+ test -e $(externals_src)/creb/modules/extlib_util.h || \
+ ( cd $(externals_src)/creb/modules && ln -s ../include/extlib_util.h )
+ test -e $(externals_src)/creb/modules/filters.h || \
+ ( cd $(externals_src)/creb/modules && ln -s ../include/filters.h )
+
+creb: pre_creb $(CREB_CXXOBJECTS:.cc=.$(EXTENSION)) \
+$(CREB_OBJECTS:.c=.$(EXTENSION))
creb_install: creb
install -d $(objectsdir)/$(CREB_NAME)
+ $(scripts_src)/generate-libdir-metafile.sh $(objectsdir) $(CREB_NAME) \
+ --author "Tom Schouten <creb@zzz.kotnet.org>" \
+ --description "" \
+ --license "GNU GPL 2" \
+ --version ""
install -p $(externals_src)/creb/abs/*.pd $(objectsdir)/$(CREB_NAME)
+ install -p $(CREB_OBJECTS:.c=.$(EXTENSION)) $(CREB_CXXOBJECTS:.cc=.$(EXTENSION)) \
+ $(objectsdir)/$(CREB_NAME)
install -d $(helpdir)/$(CREB_NAME)
- install -p $(externals_src)/creb/doc/examples/*.* \
- $(helpdir)/$(CREB_NAME)
-# install -d $(manualsdir)/$(CREB_NAME)
-# install -d $(examplesdir)/$(CREB_NAME)
+ install -p $(externals_src)/creb/doc/*.* $(helpdir)/$(CREB_NAME)
+ install -d $(manualsdir)/$(CREB_NAME)
+ install -p $(externals_src)/creb/doc/reference.txt $(manualsdir)/$(CREB_NAME)
+ install -d $(examplesdir)/$(CREB_NAME)
+ install -p $(externals_src)/creb/doc/examples/*.* $(examplesdir)/$(CREB_NAME)
creb_clean:
- -rm -f -- $(externals_src)/creb/*.$(EXTENSION)
- -rm -f -- $(externals_src)/creb/*.o
- -rm -f -- $(externals_src)/creb/*.bak
- -rm -f -- $(externals_src)/creb/*.*~
+ -rm -f -- $(externals_src)/creb/*/*.$(EXTENSION)
+ -rm -f -- $(externals_src)/creb/*/*.o
+ -rm -f -- $(externals_src)/creb/*/*.bak
+ -rm -f -- $(externals_src)/creb/*/*.*~
#------------------------------------------------------------------------------#