(svn r1983) Introduce multiple compile time debug levels
authortron
Thu, 10 Mar 2005 15:23:13 +0000
changeset 1479 6770c281d22f
parent 1478 240d90b24acd
child 1480 93c8fbea364b
(svn r1983) Introduce multiple compile time debug levels
Makefile
--- a/Makefile	Thu Mar 10 10:59:35 2005 +0000
+++ b/Makefile	Thu Mar 10 15:23:13 2005 +0000
@@ -286,7 +286,15 @@
 endif
 
 ifdef DEBUG
-  CFLAGS += -g -fno-inline -D_DEBUG
+  ifeq ($(shell expr $(DEBUG) \>= 1), 1)
+    CFLAGS += -g -D_DEBUG
+  endif
+  ifeq ($(shell expr $(DEBUG) \>= 2), 1)
+    CFLAGS += -fno-inline
+  endif
+  ifeq ($(shell expr $(DEBUG) \>= 3), 1)
+    CFLAGS += -O0
+  endif
 endif
 
 ifdef PROFILE