From 857126daf5b96292be0fd924e8462b76177af025 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Sat, 13 Aug 2016 02:39:33 +0300 Subject: build: configure: Add option to enable debug symbols Add '--enable-debug' option to enable debugging symbols, the reason is to simplify it by ./configure it once and do not execute 'make DEBUG=1' each time for a long debug session. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 83454e2..ad1c1fc 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,11 @@ MAKEFLAGS += --jobs=$(shell grep "^processor" /proc/cpuinfo | wc -l) ifeq ("$(origin DEBUG)", "command line") DEBUG := 1 else - DEBUG := 0 + ifeq ($(CONFIG_DEBUG), 1) + DEBUG := 1 + else + DEBUG := 0 + endif endif # Compiler detection -- cgit v1.2.3-54-g00ecf