aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-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 *~