From 11d2a46b26553fdd31c141df69c48f0e8b608f7f Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sat, 19 Nov 2005 03:44:29 +0000 Subject: scrolllist 0.1 svn path=/trunk/externals/unauthorized/; revision=3969 --- scrolllist/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 scrolllist/Makefile (limited to 'scrolllist/Makefile') diff --git a/scrolllist/Makefile b/scrolllist/Makefile new file mode 100755 index 0000000..a8624eb --- /dev/null +++ b/scrolllist/Makefile @@ -0,0 +1,48 @@ +NAME=scrolllist +CSYM=scrolllist + +current: pd_linux + +INCLUDE = -I../../src + +# ----------------------- Mac OSX ----------------------- + +pd_darwin: $(NAME).pd_darwin + +.SUFFIXES: .pd_darwin + +DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch + +.c.pd_darwin: + cc $(DARWINCFLAGS) $(INCLUDE) -o $*.o -c $*.c + cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o + rm -f $*.o ../$*.pd_darwin + ln -s $*/$*.pd_darwin .. + + +# ----------------------- LINUX i386 ----------------------- + +pd_linux: $(NAME).pd_linux + +.SUFFIXES: .pd_linux + +LINUXCFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \ + -Wall -W -Wno-shadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch -Werror -g + +.c.pd_linux: + ./tk2c.bash < $*.tk > $*.tk2c + gcc $(LINUXCFLAGS) $(INCLUDE) -o $*.o -c $*.c + ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm + strip --strip-unneeded $*.pd_linux + rm -f $*.o ../$*.pd_linux + ln -s $*/$*.pd_linux .. + +# ---------------------------------------------------------- + +install: + cp help-*.pd ../../doc/5.reference + +clean: + rm -f *.o *.pd_* so_locations -- cgit v1.2.1