aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comport/makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/comport/makefile b/comport/makefile
index 48e9db2..c28e664 100644
--- a/comport/makefile
+++ b/comport/makefile
@@ -80,3 +80,18 @@ LINUXINCLUDE = -I../../src
ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
strip --strip-unneeded $*.pd_linux
rm $*.o
+
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: comport.pd_darwin
+
+.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 -undefined suppress -flat_namespace -o $*.pd_darwin $*.o
+ rm -f $*.o
+