blob: 39354e94a9093e094de4b4421e6ebced6e9d96bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
current: pd_darwin
clean: ; rm -f *.o *.pd_darwin
# ----------------------- Mac OSX -----------------------
# You'll have to set the environment variable
# MACOSX_DEPLOYMENT_TARGET=10.3
pd_darwin: clr.pd_darwin
.SUFFIXES: .pd_darwin
PDPATH=/Users/thomas/Develop/pd/devel_0_39
MONO=/Library/Frameworks/Mono.Framework
# 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
DARWININCLUDE = -I$(MONO)/Headers -I$(MONO)/Headers/glib-2.0 -I$(MONO)/Libraries/glib-2.0/include -I$(PDPATH)/src
DARWINCFLAGS = -DPD -O2
.cpp.pd_darwin:
g++ -dynamiclib -undefined dynamic_lookup $(DARWINCFLAGS) $(DARWININCLUDE) $(CFLAGS) $(LDFLAGS) -o $*.pd_darwin $*.cpp
|