diff options
author | mescalinum <mescalinum@users.sourceforge.net> | 2009-09-23 19:08:17 +0000 |
---|---|---|
committer | mescalinum <mescalinum@users.sourceforge.net> | 2009-09-23 19:08:17 +0000 |
commit | 7cb304d898d7212d6bb75ba5716350e8f55b4eee (patch) | |
tree | bec120f32700db836fef724db0723666855f306c /composer/makefile | |
parent | a874e13115da648dae992634c5f6ee0912f136f3 (diff) |
add DEBUG variable
svn path=/trunk/externals/ffext/; revision=12438
Diffstat (limited to 'composer/makefile')
-rw-r--r-- | composer/makefile | 23 |
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 |