aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinfried Ritsch <ritsch@users.sourceforge.net>2006-01-26 15:48:28 +0000
committerWinfried Ritsch <ritsch@users.sourceforge.net>2006-01-26 15:48:28 +0000
commitfa52310976e8c860240183fe725d69d914e0251a (patch)
treecd9b02acd9be9c9f70ca3b8315f71d3568fb1616
parenteb87f5f946876f39c37e116d941ddd2c73e81a49 (diff)
mac makefile extension
svn path=/trunk/externals/iem/comport/; revision=4497
-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
+