# HG changeset patch # User tron # Date 2005-03-10 15:23:13 # Node ID dd86e6e397f92b3ab098072c1bbec63948d68836 # Parent 5b146d4583adb8bdcb317aa4dab114c83638cd37 (svn r1983) Introduce multiple compile time debug levels diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -286,7 +286,15 @@ ifeq ($(shell if test $(CC_VERSION) -ge 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