aboutsummaryrefslogtreecommitdiff
path: root/dssi/makefile
diff options
context:
space:
mode:
authorJamie Bullock <postlude@users.sourceforge.net>2006-02-02 20:40:46 +0000
committerJamie Bullock <postlude@users.sourceforge.net>2006-02-02 20:40:46 +0000
commitc32d4ad80dc0033f1ab3e652cc05a039887a441e (patch)
tree63aa970830cbff9cdb960bbbd2a5c70a36a0b823 /dssi/makefile
parent6119a3a90526ab88bf7ce239aae45f8e876bcbbe (diff)
*** empty log message ***
svn path=/trunk/externals/postlude/; revision=4537
Diffstat (limited to 'dssi/makefile')
-rwxr-xr-xdssi/makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/dssi/makefile b/dssi/makefile
new file mode 100755
index 0000000..55d5cf3
--- /dev/null
+++ b/dssi/makefile
@@ -0,0 +1,54 @@
+NAME=dssi~
+CSYM=dssi~
+
+LIBDIR=/usr/local/lib
+PDDIR=$(LIBDIR)/pd
+INSTALLPATH=$(PDDIR)/extra/
+
+current: pd_linux
+
+
+# ----------------------- Linux -----------------------
+
+pd_linux: src/$(NAME).pd_linux
+
+.SUFFIXES: .pd_linux
+
+LINUXCFLAGS = -DPD -O2 -fPIC -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+LINUXINCLUDE = -I/usr/include -I./include
+
+.c.pd_linux:
+ $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c $*.c
+ ld -export_dynamic -shared -o $(NAME).pd_linux $(NAME).o -lc -lm -llo
+ strip --strip-unneeded $(NAME).pd_linux
+ rm -f *.o
+
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: src/$(NAME).pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+DARWINCFLAGS = -DPD -O3 -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch -L/usr/local/lib/
+
+DARWININCLUDE = -I ./ -I ../src -I/usr/local/include/ -I ./include -I/usr/local/include/dssi/
+
+.c.pd_darwin:
+ $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $(NAME).o -c $*.c
+ $(CC) -bundle -undefined suppress -flat_namespace -llo -o $(NAME).pd_darwin $(NAME).o
+ rm -f *.o
+
+# ----------------------- Generic -----------------------
+
+clean:
+ rm -f *.o *.pd_* so_locations
+
+install:
+ cp dssi~.pd_linux $(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/