aboutsummaryrefslogtreecommitdiff
path: root/externals/build/linux/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'externals/build/linux/makefile')
-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 *~