From 03d7886528a6670244f9cdf7608dea3c46de129d Mon Sep 17 00:00:00 2001 From: Rich E Date: Fri, 18 Jan 2008 20:27:28 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r9151, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/reakin/sdiflists/; revision=9152 --- makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..c0638cd --- /dev/null +++ b/makefile @@ -0,0 +1,52 @@ +# ----------Pd-Sdif makefile, using the makefile-------------- +# ---------from example Pd externals-------------------------- +# *** Make sure the pd header files and sdif library can +# *** be found by including the right directory +# - this external will probably work on windows if you can +# get the SDIF IRCAM library installed, but I couldn't +# use the pd/doc/6.extern/makefile and link with -lsdif + +current: + echo make pd_linux + +clean: ; rm -f *.pd_linux *.o + + +# ----------------------- LINUX i386 ----------------------- + +pd_linux: sdiflists.pd_linux + + + +.SUFFIXES: .pd_linux + +LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \ + -Wall -W -Wshadow -Wstrict-prototypes -Werror \ + -Wno-unused -Wno-parentheses -Wno-switch + +LINUXINCLUDE = -I /usr/local/include + + +.c.pd_linux: + cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c + ld -lsdif -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm + strip --strip-unneeded $*.pd_linux + rm $*.o + + +# ----------------------- Mac OSX ----------------------- + +pd_darwin: sdiflists.pd_darwin + +.SUFFIXES: .pd_darwin + +DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch + +DARWIN_INCLUDE = -I /usr/local/include + +.c.pd_darwin: + cc $(DARWINCFLAGS) $(DARWIN_INCLUDE) -o $*.o -c $*.c + cc -bundle -undefined suppress -lsdif -flat_namespace -o $*.pd_darwin $*.o + rm -f $*.o + -- cgit v1.2.1