diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-08-13 02:39:33 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-08-17 09:27:44 +0200 |
commit | 857126daf5b96292be0fd924e8462b76177af025 (patch) | |
tree | e8c0e11a93403646145b8ae18b0f68ce27efd8da /Makefile | |
parent | ee3f53306b1ceb5235ac587c2e0a605c13922d78 (diff) |
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 <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |