diff options
author | Jamie Bullock <postlude@users.sourceforge.net> | 2015-04-28 11:34:03 +0000 |
---|---|---|
committer | Jamie Bullock <postlude@users.sourceforge.net> | 2015-04-28 11:34:03 +0000 |
commit | b10991d475fddf3043b483dec203c00baf8e9f32 (patch) | |
tree | e6b501065a51d02957cb62826ef4b3eb76769894 /copy/Makefile | |
parent | ebaabd0f2e3203be4700d01260b81c5971289c14 (diff) |
[copy] external, initial commit
svn path=/trunk/externals/postlude/; revision=17455
Diffstat (limited to 'copy/Makefile')
-rw-r--r-- | copy/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/copy/Makefile b/copy/Makefile new file mode 100644 index 0000000..0600286 --- /dev/null +++ b/copy/Makefile @@ -0,0 +1,58 @@ +NAME=copy +CSYM=copy + +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 copy.pd_linux $(INSTALLPATH) + install -d $(PDDIR)/doc/5.reference/copy/ + install -m 644 doc/help-* $(PDDIR)/doc/5.reference/ |