diff options
author | Jamie Bullock <postlude@users.sourceforge.net> | 2008-10-06 13:36:43 +0000 |
---|---|---|
committer | Jamie Bullock <postlude@users.sourceforge.net> | 2008-10-06 13:36:43 +0000 |
commit | f6e9977083cae2dfea08e93bdce2279e7d8e877d (patch) | |
tree | f8d853a6880ba7485b191b7101980638491991dc /knn | |
parent | 2cad4eb23ee24a5aec84c223872f5b84ff3009d0 (diff) |
- Added pd_darwin build target to makefile
svn path=/trunk/externals/postlude/; revision=10325
Diffstat (limited to 'knn')
-rw-r--r-- | knn/makefile | 29 |
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/ |