aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-14 06:03:31 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-14 06:03:31 +0000
commitf9f5be77646dc69989ed840e70e2b4cb452a76e5 (patch)
treec83253ebbb8783c37e197ce8b13669a790282aab /Makefile.in
parent34a5c986ebab45f06258b6da12e0258ad570a67b (diff)
merged in fixes from branch-v0-39-2-extended so that it builds on Mac OS X, and works better with the Pd-extended build system
svn path=/trunk/externals/pidip/; revision=6886
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 0370aab..bc1e272 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -28,12 +28,23 @@ PDP_PIDIP_CPPFLAGS = $(MPEG4IP_CFLAGS) $(MAGICK_CFLAGS) $(IMLIB_CFLAGS) \
-Wno-unused -Wno-parentheses -Wno-switch \
-DPDP_PIDIP_VERSION=\"$(PDP_PIDIP_VERSION)\" -g
+ifeq ($(shell uname -s),Darwin)
+all: pidip.pd_darwin
+endif
+
+ifeq ($(shell uname -s),Linux)
all: pidip.pd_linux
+endif
pdp_pidip_all:
make -C system
make -C modules
+pidip.pd_darwin: pdp_pidip_all
+ rm -f pidip.pd_darwin
+ g++ -bundle -undefined dynamic_lookup -o pidip.pd_darwin modules/*.o system/*.o -L/sw/lib $(THEORA_LIBS) $(PDP_PIDIP_LIBS) $(IMLIB_LIBS) $(MAGICK_LIBS)
+ strip -x pidip.pd_darwin
+
pidip.pd_linux: pdp_pidip_all
rm -f pidip.pd_linux
g++ -export_dynamic -shared -o pidip.pd_linux modules/*.o system/*.o $(THEORA_LIBS) $(PDP_PIDIP_LIBS) $(IMLIB_LIBS) $(MAGICK_LIBS)