blob: ca33718f984bc62f48b8de37e73db300e0a400a3 (
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
30
31
32
33
34
35
|
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
CFLAGS += -DPD -O2
# where is the PD executable?
PD=$(PDPATH)/bin/pd
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
# old version
#OPTIONS = -bundle -bundle_loader $(PD)
.cpp.pd_darwin:
g++ $(OPTIONS) $(INCLUDE) $(CFLAGS) $(LDFLAGS) -o $*.pd_darwin $*.cpp
|