aboutsummaryrefslogtreecommitdiff
path: root/dssi/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dssi/makefile')
-rwxr-xr-xdssi/makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/dssi/makefile b/dssi/makefile
index 498eb5f..e87fe73 100755
--- a/dssi/makefile
+++ b/dssi/makefile
@@ -4,8 +4,9 @@ CSYM=dssi~
LIBDIR=/usr/local/lib
PDDIR=$(LIBDIR)/pd
INSTALLPATH=$(PDDIR)/extra/
+DEBUG=0
-current: pd_darwin
+current: pd_linux
# ----------------------- Linux -----------------------
@@ -14,14 +15,14 @@ pd_linux: src/$(NAME).pd_linux
.SUFFIXES: .pd_linux
-LINUXCFLAGS = -DPD -O3 -fPIC -funroll-loops -fomit-frame-pointer \
+#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 \
+LINUXCFLAGS = -ggdb -g -DPD -O0 -fPIC -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes -Werror \
- -Wno-unused -Wno-parentheses -Wno-switch
+ -Wno-unused -Wno-parentheses -Wno-switch -DDEBUG=$(DEBUG)
LINUXINCLUDE = -I/usr/include -I./include
@@ -29,8 +30,9 @@ LINUXINCLUDE = -I/usr/include -I./include
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/jsearch.c
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/jload.c
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/dssi~.c
- ld -export_dynamic -shared -o $(NAME).pd_linux dssi~.o jload.o jsearch.o -lc -lm -llo
+ 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 -----------------------
@@ -40,7 +42,7 @@ 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/
+ -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/
@@ -57,7 +59,7 @@ clean:
rm -f *.o *.pd_* so_locations
install:
- cp dssi~.pd_linux $(INSTALLPATH)
+ 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/