aboutsummaryrefslogtreecommitdiff
path: root/getpatchname/makefile
diff options
context:
space:
mode:
authorJamie Bullock <postlude@users.sourceforge.net>2006-07-12 14:36:34 +0000
committerJamie Bullock <postlude@users.sourceforge.net>2006-07-12 14:36:34 +0000
commit76c97192a191929dfabeefa168a4b838a3b1f07f (patch)
tree72d6f39b5d981b4bf7a4f852f9991e7886e525fb /getpatchname/makefile
parent4de225a88232e3dafdc8d907b58bc5d06cdb7c38 (diff)
This commit was generated by cvs2svn to compensate for changes in r5366,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/postlude/; revision=5367
Diffstat (limited to 'getpatchname/makefile')
-rw-r--r--getpatchname/makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/getpatchname/makefile b/getpatchname/makefile
new file mode 100644
index 0000000..54e60c8
--- /dev/null
+++ b/getpatchname/makefile
@@ -0,0 +1,58 @@
+NAME=getpatchname
+CSYM=getpatchname
+
+LIBDIR=/usr/local/lib
+PDDIR=$(LIBDIR)/pd
+INSTALLPATH=$(PDDIR)/extra/
+
+current: pd_linux
+
+
+# ----------------------- Linux -----------------------
+
+pd_linux: src/$(NAME).pd_linux
+
+.SUFFIXES: .pd_linux
+
+LINUXCFLAGS = -ggdb -DPD -O3 -fPIC -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+# Debug
+#LINUXCFLAGS = -ggdb -g -DPD -O0 -fPIC -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+LINUXINCLUDE = -I/usr/include -I./include
+
+.c.pd_linux:
+ $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/$(NAME).c
+ ld -export_dynamic -shared -o $(NAME).pd_linux $(NAME).o -lc
+ strip --strip-unneeded $(NAME).pd_linux
+ rm -f *.o
+
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: src/$(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 src/$(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 getpatchname.pd_linux $(INSTALLPATH)
+ install -d $(PDDIR)/doc/5.reference/getpatchname/
+ install -m 644 doc/help-* $(PDDIR)/doc/5.reference/