From f6e9977083cae2dfea08e93bdce2279e7d8e877d Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Mon, 6 Oct 2008 13:36:43 +0000 Subject: - Added pd_darwin build target to makefile svn path=/trunk/externals/postlude/; revision=10325 --- knn/makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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/ -- cgit v1.2.1