From 2b07dd7d13f0aa5dfb53d13ee944e2dd3113a9f9 Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Thu, 17 Oct 2002 14:05:55 +0000 Subject: started build system svn path=/trunk/; revision=175 --- externals/build/linux/makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 externals/build/linux/makefile (limited to 'externals/build/linux') diff --git a/externals/build/linux/makefile b/externals/build/linux/makefile new file mode 100644 index 00000000..1bfa0a3d --- /dev/null +++ b/externals/build/linux/makefile @@ -0,0 +1,23 @@ + + +EXTERNALS = $(shell ls ../src) + +all: $(EXTERNALS:.c=.pd_linux) + +.SUFFIXES: .pd_linux + +LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \ + -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch + +LINUXINCLUDE = -I.. + +%.pd_linux: ../src/%.c + $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c ../src/$*.c + ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm + chmod a-x $*.pd_linux +# strip --strip-unneeded $*.pd_linux + rm -f $*.o + +clean: + -rm *.pd_linux *~ -- cgit v1.2.1