aboutsummaryrefslogtreecommitdiff
path: root/externals/build/linux
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-10-17 14:05:55 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-10-17 14:05:55 +0000
commit2b07dd7d13f0aa5dfb53d13ee944e2dd3113a9f9 (patch)
treea5b3b35647e175ac374a90273575336f73c9cce8 /externals/build/linux
parent2c23a63729d6323de172f7e1e8c16ff7ce8bedc6 (diff)
started build system
svn path=/trunk/; revision=175
Diffstat (limited to 'externals/build/linux')
-rw-r--r--externals/build/linux/makefile23
1 files changed, 23 insertions, 0 deletions
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 *~