aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-03-06 16:28:54 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-03-06 16:28:54 +0000
commit6ef70933fef8baaf373e43b3f2a02f3a6b083171 (patch)
tree759453aa38e23d2e2813d591f0cf325801821407
parentdf72257e674fda4865a0a2d158d95971448250e6 (diff)
changed from libs to framework
svn path=/trunk/externals/clr/; revision=4653
-rwxr-xr-xmakefile.darwin16
1 files changed, 11 insertions, 5 deletions
diff --git a/makefile.darwin b/makefile.darwin
index 39354e9..ca33718 100755
--- a/makefile.darwin
+++ b/makefile.darwin
@@ -13,17 +13,23 @@ pd_darwin: clr.pd_darwin
PDPATH=/Users/thomas/Develop/pd/devel_0_39
-
MONO=/Library/Frameworks/Mono.Framework
+CFLAGS += -DPD -O2
+
# where is the PD executable?
PD=$(PDPATH)/bin/pd
-LDFLAGS=-L$(MONO)/Libraries -lmono -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 # -lintl -liconv
+LDFLAGS=-framework Mono
+
+INCLUDE = -I$(MONO)/Headers -I$(MONO)/Headers/glib-2.0 -I$(MONO)/Libraries/glib-2.0/include -I$(PDPATH)/src
+
+# new version
+OPTIONS = -dynamiclib -undefined dynamic_lookup
-DARWININCLUDE = -I$(MONO)/Headers -I$(MONO)/Headers/glib-2.0 -I$(MONO)/Libraries/glib-2.0/include -I$(PDPATH)/src
+# old version
+#OPTIONS = -bundle -bundle_loader $(PD)
-DARWINCFLAGS = -DPD -O2
.cpp.pd_darwin:
- g++ -dynamiclib -undefined dynamic_lookup $(DARWINCFLAGS) $(DARWININCLUDE) $(CFLAGS) $(LDFLAGS) -o $*.pd_darwin $*.cpp
+ g++ $(OPTIONS) $(INCLUDE) $(CFLAGS) $(LDFLAGS) -o $*.pd_darwin $*.cpp