summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0aabb95e0..7146f8294 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