blob: 0c3fbc1be768904c74ac9509a4e684d3cffa1c8a (
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
38
39
40
41
42
43
44
45
46
47
48
|
current: pd_darwin
clean: ; rm -f *.pd_linux *.o *.pd_darwin
# ----------------------- Mac OSX -----------------------
pd_darwin: ann_mlp.pd_darwin ann_td.pd_darwin ann_som.pd_darwin ann.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=../../../pd/src
#PDPATH=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/src/
# where is the PD executable?
#PD=/usr/local/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/
#PD=/Applications/Pd-extended.app/Contents/Resources/bin/pd
# where do the fann libraries reside? Download and build them:
# http://downloads.sourceforge.net/sourceforge/fann/fann-1.2.0.tar.gz
#FANNLIB=/Users/davidemorelli/Desktop/robaDavide/fann-1.2.0/src/fann.o
FANNBASE=/Users/davidemorelli/Desktop/robaDavide/fann-1.2.0
FANNLIB=$(FANNBASE)/src/fann.o \
$(FANNBASE)/src/fann_train.o \
$(FANNBASE)/src/fann_train_data.o \
$(FANNBASE)/src/fann_io.o \
$(FANNBASE)/src/fann_error.o \
$(FANNBASE)/src/fann_options.o
#FANNLIB=/usr/local/lib/libfann.a
DARWININCLUDE = -I../../src -I$(PDPATH) -I$(PDPATH)/src/include
DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
.c.pd_darwin:
cc $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c
# cc -bundle -bundle_loader $(PD) -flat_namespace -o $*.pd_darwin $(FANNLIB) *.o
cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $(FANNLIB) *.o
# rm -f $*.o
# $(FANNLIB)
|