aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-01-17 06:24:18 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-01-17 06:24:18 +0000
commit1f13ca249fc252c49e907b69059f5892b58d1dd6 (patch)
tree85e5c0a1b0cfe3607d6a5d3af9e51b364143a582
parent9c7e28ce045310942cfd8d807a578e6d44db1c71 (diff)
made the LIB_TARGETS customizable based on platform since some libs don't compile on all platforms (yet), most notable hid, pdp, and pidip. ALso, excluded some troubleshome unauthorized objects
svn path=/trunk/; revision=4440
-rw-r--r--externals/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/externals/Makefile b/externals/Makefile
index 68740a19..fd644bc8 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -100,10 +100,21 @@ CXXFLAGS = $(CFLAGS)
# ALL
# if your library isn't included here, it won't be built with Pd-extended
-LIB_TARGETS = buildsrc creb cxc cyclone ext13 freeverb hid iemabs iemlib \
-iemmatrix loaders markex maxlib mjlib motex oscx pddp pdogg pdp pmpd \
+LIB_TARGETS = buildsrc creb cxc cyclone ext13 freeverb iemabs iemlib \
+iemmatrix loaders markex maxlib mjlib motex oscx pddp pdogg pmpd \
sigpack smlib toxy unauthorized vbap zexy
+# this is for libraries that don't compile (yet) on all platforms
+ifeq ($(OS_NAME),windows)
+ LIB_TARGETS +=
+else
+ ifeq ($(OS_NAME),darwin)
+ LIB_TARGETS += hid pdp
+ else
+ LIB_TARGETS += hid pdp pidip
+ endif
+endif
+
all: pre_all_$(OS_NAME) buildsrc $(LIB_TARGETS)
@echo " "
@@ -980,8 +991,10 @@ UNAUTHORIZED_TKFILES = $(wildcard $(externals_src)/unauthorized/*/*.tk)
%.tk2c: %.tk
bash $(externals_src)/unauthorized/tk2c.bash < $*.tk > $*.tk2c
-# [cooled~] doesn't compile under MinGW (yet)
-UNAUTHORIZED_OBJECTS := $(wildcard $(externals_src)/unauthorized/[a-sw-z]*/*.c)
+# [cooled~] doesn't compile under MinGW (yet) and it crashes Pd on Mac OS X,
+# so its excluded from the build here
+UNAUTHORIZED_OBJECTS := $(wildcard $(externals_src)/unauthorized/[a-bd-uw-z]*/*.c) \
+$(wildcard $(externals_src)/unauthorized/c?[a-np-z]*/*.c)
# [vocoder~] is built separately since its made from a number of files
UNAUTHORIZED_VOCODER = $(wildcard $(externals_src)/unauthorized/vocoder*/*.c)
@@ -1133,6 +1146,9 @@ test_locations:
@echo "HELPDIR $(helpdir)"
@echo "MANUALSDIR $(manualsdir)"
@echo "EXAMPLESDIR $(examplesdir)"
+ @echo " "
+ @echo "Compiling these libs:"
+ @echo "$(LIB_TARGETS)"
.PHONY: all install clean distclean test_locations $(LIB_TARGETS) \