From c32d4ad80dc0033f1ab3e652cc05a039887a441e Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Thu, 2 Feb 2006 20:40:46 +0000 Subject: *** empty log message *** svn path=/trunk/externals/postlude/; revision=4537 --- dssi/makefile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 dssi/makefile (limited to 'dssi/makefile') diff --git a/dssi/makefile b/dssi/makefile new file mode 100755 index 0000000..55d5cf3 --- /dev/null +++ b/dssi/makefile @@ -0,0 +1,54 @@ +NAME=dssi~ +CSYM=dssi~ + +LIBDIR=/usr/local/lib +PDDIR=$(LIBDIR)/pd +INSTALLPATH=$(PDDIR)/extra/ + +current: pd_linux + + +# ----------------------- Linux ----------------------- + +pd_linux: src/$(NAME).pd_linux + +.SUFFIXES: .pd_linux + +LINUXCFLAGS = -DPD -O2 -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 $*.c + ld -export_dynamic -shared -o $(NAME).pd_linux $(NAME).o -lc -lm -llo + 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 = -I ./ -I ../src -I/usr/local/include/ -I ./include -I/usr/local/include/dssi/ + +.c.pd_darwin: + $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $(NAME).o -c $*.c + $(CC) -bundle -undefined suppress -flat_namespace -llo -o $(NAME).pd_darwin $(NAME).o + rm -f *.o + +# ----------------------- Generic ----------------------- + +clean: + rm -f *.o *.pd_* so_locations + +install: + cp dssi~.pd_linux $(INSTALLPATH) + install -d $(PDDIR)/doc/5.reference/dssi/ + install -m 644 doc/help-* $(PDDIR)/doc/5.reference/ + install -m 644 doc/output~.pd $(PDDIR)/doc/5.reference/dssi/ -- cgit v1.2.1