From 54a40903e3d7e40854952dbdf9d4eff009680bb3 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 10 Mar 2005 15:23:13 +0000 Subject: [PATCH] (svn r1983) Introduce multiple compile time debug levels --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0aabb95e01..7146f82947 100644 --- a/Makefile +++ b/Makefile @@ -286,7 +286,15 @@ ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true) 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