aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-04-14 23:23:03 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-04-14 23:23:03 +0000
commitf3b69e7579c2327a28e1a6077a38e0a53dd7b596 (patch)
tree53138c78363604c0c5fb03b826a4279798867bec /src
parenta29e3a9d4a930756de7175b1f1c1ca456bd85907 (diff)
a couple of minor tweaks to make things easier to build
svn path=/trunk/externals/ann/; revision=11025
Diffstat (limited to 'src')
-rw-r--r--src/makefile.darwin14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/makefile.darwin b/src/makefile.darwin
index 2c5c301..0c3fbc1 100644
--- a/src/makefile.darwin
+++ b/src/makefile.darwin
@@ -13,15 +13,17 @@ pd_darwin: ann_mlp.pd_darwin ann_td.pd_darwin ann_som.pd_darwin ann.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=/usr/local/src/pd/src
-PDPATH=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/src/
+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?
+# 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 \
@@ -32,15 +34,15 @@ FANNLIB=$(FANNBASE)/src/fann.o \
$(FANNBASE)/src/fann_options.o
#FANNLIB=/usr/local/lib/libfann.a
-DARWININCLUDE = -I../../src -I$(PDPATH)
+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
+# 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)