From 328c3a88a5f0b1c3aac51dc63c68a66353770715 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Mon, 11 May 2015 11:17:35 +0000 Subject: Rename [copy] to [filecopy] svn path=/trunk/externals/postlude/; revision=17467 --- filecopy/Makefile | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 filecopy/Makefile (limited to 'filecopy/Makefile') diff --git a/filecopy/Makefile b/filecopy/Makefile new file mode 100644 index 0000000..0acba62 --- /dev/null +++ b/filecopy/Makefile @@ -0,0 +1,58 @@ +NAME=filecopy +CSYM=filecopy + +LIBDIR=/usr/local/lib +PDDIR=$(LIBDIR)/pd +INSTALLPATH=$(PDDIR)/extra/ + +current: pd_darwin + + +# ----------------------- Linux ----------------------- + +pd_linux: $(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 -I../../../pd/src + +.c.pd_linux: + $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c $(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: $(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 filecopy.pd_* $(INSTALLPATH) + install -d $(PDDIR)/doc/5.reference/filecopy/ + install -m 644 doc/help-* $(PDDIR)/doc/5.reference/ -- cgit v1.2.1