aboutsummaryrefslogtreecommitdiff
path: root/knn
diff options
context:
space:
mode:
authorJamie Bullock <postlude@users.sourceforge.net>2008-10-06 13:36:43 +0000
committerJamie Bullock <postlude@users.sourceforge.net>2008-10-06 13:36:43 +0000
commitf6e9977083cae2dfea08e93bdce2279e7d8e877d (patch)
treef8d853a6880ba7485b191b7101980638491991dc /knn
parent2cad4eb23ee24a5aec84c223872f5b84ff3009d0 (diff)
- Added pd_darwin build target to makefile
svn path=/trunk/externals/postlude/; revision=10325
Diffstat (limited to 'knn')
-rw-r--r--knn/makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/knn/makefile b/knn/makefile
index f21322c..849dfe1 100644
--- a/knn/makefile
+++ b/knn/makefile
@@ -1,6 +1,10 @@
NAME=knn
CSYM=knn
+LIBDIR=/usr/local/lib
+PDDIR=$(LIBDIR)/pd
+INSTALLPATH=$(PDDIR)/extra/
+
current: pd_linux
# ----------------------- NT -----------------------
@@ -73,5 +77,30 @@ LINUXINCLUDE = -I/usr/lib/pd/include/
rm $*.o
cp $*.pd_linux ../.
+
+
+# ----------------------- Darwin -----------------------
+
+pd_darwin: $(NAME).pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+DARWINCFLAGS = -DPD -O3 -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch -L/usr/local/lib/
+
+DARWININCLUDE = $(LINUXINCLUDE)
+
+.c.pd_darwin:
+ $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -c $(NAME).c
+ $(CC) -bundle -undefined suppress -flat_namespace -o $(NAME).pd_darwin $(NAME).o
+ rm -f *.o
+
+# ----------------------- Generic -----------------------
+
clean:
rm -f *.o *.pd_* so_locations
+
+install:
+ cp $(NAME).pd_* $(INSTALLPATH)
+ install -d $(PDDIR)/doc/5.reference/getpatchname/
+ install -m 644 help-* $(PDDIR)/doc/5.reference/