aboutsummaryrefslogtreecommitdiff
path: root/pluginhost~/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pluginhost~/makefile')
-rwxr-xr-xpluginhost~/makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/pluginhost~/makefile b/pluginhost~/makefile
new file mode 100755
index 0000000..6a87da9
--- /dev/null
+++ b/pluginhost~/makefile
@@ -0,0 +1,66 @@
+NAME=dssi~
+CSYM=dssi~
+
+LIBDIR=/usr/local/lib
+PDDIR=$(LIBDIR)/pd
+INSTALLPATH=$(PDDIR)/extra/
+ARCHITECTURE=i386
+DEBUG=0
+
+current: pd_linux
+
+
+# ----------------------- Linux -----------------------
+
+pd_linux: src/$(NAME).pd_linux
+
+.SUFFIXES: .pd_linux
+
+#LINUXCFLAGS = -DPD -O3 -fPIC -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+# Debug
+LINUXCFLAGS = -ggdb -g -DPD -O0 -fPIC -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch -DDEBUG=$(DEBUG)
+
+LINUXINCLUDE = -I/usr/include -I./include
+
+.c.pd_linux:
+ $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/jsearch.c
+ $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/jload.c
+ $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/dssi~.c
+ gcc --export-dynamic -shared -o $(NAME).pd_linux dssi~.o jload.o jsearch.o -lc -lm -llo
+# strip --strip-unneeded $(NAME).pd_linux
+ cp $(NAME).pd_linux ~/pd-externals/
+ rm -f *.o
+
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: src/$(NAME).pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+DARWINCFLAGS = -DPD -arch $(ARCHITECTURE) -O3 -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch -L/usr/local/lib/ -DDEBUG=$(DEBUG)
+
+DARWININCLUDE = -I ./ -I ../src -I/usr/local/include/ -I ./include -I/usr/local/include/dssi/
+
+.c.pd_darwin:
+ $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -c src/jsearch.c
+ $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -c src/jload.c
+ $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -c src/dssi~.c
+ $(CC) -arch $(ARCHITECTURE) -bundle -undefined suppress -flat_namespace -llo -o $(NAME).pd_darwin dssi~.o jload.o jsearch.o
+ rm -f *.o
+
+# ----------------------- Generic -----------------------
+
+clean:
+ rm -f *.o *.pd_* so_locations
+
+install:
+ cp dssi~.pd_* $(INSTALLPATH)
+ install -d $(PDDIR)/doc/5.reference/dssi/
+ install -m 644 doc/*-help* $(PDDIR)/doc/5.reference/
+ install -m 644 doc/output~.pd $(PDDIR)/doc/5.reference/dssi/