From f2add340c0d41e14398e6728260f7dae424c0ea3 Mon Sep 17 00:00:00 2001 From: mescalinum Date: Fri, 28 Aug 2009 16:41:52 +0000 Subject: add debug flag svn path=/trunk/externals/tclpd/; revision=12128 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.1