aboutsummaryrefslogtreecommitdiff
path: root/composer/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'composer/makefile')
-rw-r--r--composer/makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/composer/makefile b/composer/makefile
index 28e45f8..9db256c 100644
--- a/composer/makefile
+++ b/composer/makefile
@@ -1,23 +1,32 @@
+DEBUG?=0
+
all: pd_linux
.SUFFIXES: .pd_linux
pd_linux: composer.pd_linux
-LINUXCFLAGS = -DPD -DUNIX -DDEBUG -DPIC -fPIC \
+LINUXCFLAGS = -DPD -DUNIX -DPIC -fPIC \
-funroll-loops -fomit-frame-pointer \
-Wall -W -Wno-shadow -Wstrict-prototypes \
- -Wno-unused -Wno-parentheses -Wno-switch \
-#LINUXINCLUDE = -I/usr/include
-LINUXINCLUDE = -I/usr/src/pd/0.41.4/src
+ -Wno-unused -Wno-parentheses -Wno-switch
+LINUXINCLUDE = -I/usr/src/pd/0.41.4/src -I/usr/include
LINUXLDFLAGS = -export_dynamic -shared
-composer.pd_linux: song.c track.c pattern.c \
- song_proxy.c track_proxy.c \
+ifeq ($(DEBUG),1)
+ LINUXCFLAGS += -O0 -g -ggdb -DDEBUG
+ STRIP=test -f
+else
+ LINUXCFLAGS += -O2
+ STRIP=strip --strip-unneeded
+endif
+
+composer.pd_linux: track.c pattern.c \
+ track_proxy.c \
composer.c common.h arraylist.h
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o composer.o -c composer.c
$(LD) $(LINUXLDFLAGS) -o composer.pd_linux composer.o -lc -lm
- strip --strip-unneeded composer.pd_linux
+ $(STRIP) composer.pd_linux
clean:
rm -f *.o *.pd_linux