diff options
Diffstat (limited to 'scrolllist/Makefile')
-rwxr-xr-x | scrolllist/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
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 |