# HG changeset patch # User tron # Date 1110468193 0 # Node ID 6770c281d22f96ba36277c57dd9eba03847f5f29 # Parent 240d90b24acd2f5f24c4cced892fb613f754c794 (svn r1983) Introduce multiple compile time debug levels diff -r 240d90b24acd -r 6770c281d22f 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