aboutsummaryrefslogtreecommitdiff
path: root/makefile.darwin
diff options
context:
space:
mode:
authorDavide Morelli <morellid@users.sourceforge.net>2006-01-12 09:22:35 +0000
committerDavide Morelli <morellid@users.sourceforge.net>2006-01-12 09:22:35 +0000
commit70fd0fd73aaa002d4d7e9841d8af105c4c80ddf4 (patch)
treeec40da26ff4dfe7704720da87ee6652c4be6530c /makefile.darwin
checking in the externalsvn2git-root
svn path=/trunk/externals/clr/; revision=4387
Diffstat (limited to 'makefile.darwin')
-rwxr-xr-xmakefile.darwin40
1 files changed, 40 insertions, 0 deletions
diff --git a/makefile.darwin b/makefile.darwin
new file mode 100755
index 0000000..54a8a01
--- /dev/null
+++ b/makefile.darwin
@@ -0,0 +1,40 @@
+current: pd_darwin
+
+clean: ; rm -f *.pd_linux *.o *.pd_darwin
+
+
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: clr.pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+
+# where are the PD header files?
+# leave it blank if it is a system directory (like /usr/local/include),
+# since gcc 3.2 complains about it
+#PDPATH=/usr/local/src/pd/src
+PDPATH=/Users/davide/Desktop/Pd-0.39-0.app/Contents/Resources/src/
+
+# where is the PD executable?
+#PD=/usr/local/bin/pd
+PD=/Users/davide/Desktop/Pd-0.39-0.app/Contents/Resources/bin/pd
+#PD=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/src/
+
+CFLAGS=`pkg-config --cflags mono`
+#LDFLAGS=`pkg-config --libs mono`
+LDFLAGS=-L/sw/lib -L/sw/lib/pkgconfig/../../lib -lmono -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
+
+DARWININCLUDE = -I../../src -I$(PDPATH)
+
+#DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
+# -Wno-unused -Wno-parentheses -Wno-switch
+
+DARWINCFLAGS = -DPD -O2
+
+.c.pd_darwin:
+ cc $(DARWINCFLAGS) $(DARWININCLUDE) $(CFLAGS) -o $*.o -c $*.c
+# cc -bundle -bundle_loader $(PD) -multiply_defined supress $(LDFLAGS) -o $*.pd_darwin *.o
+ cc -bundle -bundle_loader $(PD) -flat_namespace $(LDFLAGS) -o $*.pd_darwin *.o
+# cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $(FANNLIB) *.o
+# rm -f $*.o