aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-06-01 18:27:06 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-06-01 18:27:06 +0000
commit3b9c9339d0650879b7f5e58952a6f0d32d33c497 (patch)
treed489e2bf1970c71f1e96743518fe44e633b6aac2
parentd0de4d7914c39179636e815d2061dfe230c31d99 (diff)
added pd_darwin build targets and fixed paths for svn file locations
svn path=/trunk/externals/k_jack~/; revision=9961
-rw-r--r--makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/makefile b/makefile
index e382213..b7a5c34 100644
--- a/makefile
+++ b/makefile
@@ -66,7 +66,7 @@ LINUXCFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
-PDSRCDIR=../../../src
+PDSRCDIR=../../pd/src
LINUXINCLUDE = -I$(PDSRCDIR)
.c.pd_linux:
@@ -76,10 +76,22 @@ LINUXINCLUDE = -I$(PDSRCDIR)
rm -f $*.o ../$*.pd_linux
ln -s $*/$*.pd_linux ..
-# ----------------------------------------------------------
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: $(NAME).pd_darwin
-install:
- cp help-*.pd ../../doc/5.reference
+.SUFFIXES: .pd_darwin
+
+DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+.c.pd_darwin:
+ $(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+ $(CC) -bundle -bundle_loader ../../pd/bin/pd -undefined dynamic_lookup \
+ -o $*.pd_darwin $*.o
+ rm -f $*.o
+
+# ----------------------------------------------------------
clean:
rm -f *.o *.pd_* so_locations *~