aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormescalinum <mescalinum@users.sourceforge.net>2009-08-28 16:41:52 +0000
committermescalinum <mescalinum@users.sourceforge.net>2009-08-28 16:41:52 +0000
commitf2add340c0d41e14398e6728260f7dae424c0ea3 (patch)
tree5bc90abf1add1025164927d891bb24a8ff7ef869 /Makefile
parentdf708ee8da3a30ff3509542791120a921089638c (diff)
add debug flag
svn path=/trunk/externals/tclpd/; revision=12128
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7395ed7..1aa6ea2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
#!/usr/bin/make
+DEBUG=1
TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
INCLUDES = -I../../pd/src -I/usr/include -I/usr/include/tcl$(TCL_VERSION)
CFLAGS += $(INCLUDES) -xc++ -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -O2 -Wall -fPIC
+ifeq ($(DEBUG),1)
+ CFLAGS += -O0 -g -ggdb -DDEBUG
+endif
LDSOFLAGS += -lm -ltcl$(TCL_VERSION)
CXX = g++
OS = linux