blob: 8370736cbd85a8be94cc7428db189da8204c7d2b (
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
36
37
|
current: pd_darwin
clean: ; rm -f *.pd_linux *.o *.pd_darwin
# ----------------------- Mac OSX -----------------------
pd_darwin: chord_melo.pd_darwin harmonizer.pd_darwin chords_memory.pd_darwin common.pd_darwin rhythms_memory.pd_darwin GArhythm.pd_darwin test.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=/Applications/PdOLD.app/Contents/Resources/src/
#PDPATH=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/src/
# where is the PD executable?
PD=/Applications/PdOLD.app/Contents/Resources/bin/pd
#PD=/usr/local/lib/pd/bin/pd
#PD=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/bin/pd
#PD=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/src/
DARWININCLUDE = -I../../src -I$(PDPATH)
DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
.c.pd_darwin:
cc $(DARWINCFLAGS) $(DARWININCLUDE) -c $*.c common.c
cc -bundle -bundle_loader $(PD) -flat_namespace -o $*.pd_darwin $*.o common.o
# cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin
# rm -f $*.o
# $(FANNLIB)
|