From 7cb304d898d7212d6bb75ba5716350e8f55b4eee Mon Sep 17 00:00:00 2001 From: mescalinum Date: Wed, 23 Sep 2009 19:08:17 +0000 Subject: add DEBUG variable svn path=/trunk/externals/ffext/; revision=12438 --- composer/makefile | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'composer/makefile') 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 -- cgit v1.2.1