aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormescalinum <mescalinum@users.sourceforge.net>2009-09-02 19:14:42 +0000
committermescalinum <mescalinum@users.sourceforge.net>2009-09-02 19:14:42 +0000
commit625056576b0e61325d85290a1448a8891928e34a (patch)
tree4f5aa0db16f46059debcc948f46558b809b57a2e /Makefile
parent41800157b72854e6935b4ffa7e8b93911796ce8d (diff)
disable optimizations for debug builds
svn path=/trunk/externals/tclpd/; revision=12188
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28a512b..7f37a4d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,11 @@ endif
LIBNAME = tcl
TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
INCLUDES = -I../../pd/src -I/usr/include -I/usr/include/tcl$(TCL_VERSION)
-CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -O2 -Wall -fPIC
+CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -Wall -fPIC
CFLAGS += -DPDSUF=\"$(PDSUF)\"
+ifeq ($(DEBUG),0)
+ CFLAGS += -O2
+endif
LDSOFLAGS += -lm -ltcl$(TCL_VERSION)
LDSHARED = $(CXX) $(PDBUNDLEFLAGS)