[PD-cvs] SF.net SVN: pure-data:[10325] trunk/externals/postlude/knn/makefile
postlude at users.sourceforge.net
postlude at users.sourceforge.net
Mon Oct 6 15:36:43 CEST 2008
Revision: 10325
http://pure-data.svn.sourceforge.net/pure-data/?rev=10325&view=rev
Author: postlude
Date: 2008-10-06 13:36:43 +0000 (Mon, 06 Oct 2008)
Log Message:
-----------
- Added pd_darwin build target to makefile
Modified Paths:
--------------
trunk/externals/postlude/knn/makefile
Modified: trunk/externals/postlude/knn/makefile
===================================================================
--- trunk/externals/postlude/knn/makefile 2008-10-06 12:54:41 UTC (rev 10324)
+++ trunk/externals/postlude/knn/makefile 2008-10-06 13:36:43 UTC (rev 10325)
@@ -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 @@
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/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Pd-cvs
mailing list