From c892bbc063bd28e2031ae78d363468cda826ee32 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 1 Jan 2018 11:27:11 -0700 Subject: [PATCH] Easier debug build --- Makefile | 5 ++++- README.md | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b3b8b86..0f91b87 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ CFLAGS += -Wall CFLAGS += -Werror TARGETS = hdjd explore -#CFLAGS += -g -DDEBUG + +ifdef DEBUG +CFLAGS += -g -DDEBUG +endif all: $(TARGETS) diff --git a/README.md b/README.md index 1a6da33..5551f13 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,10 @@ See [this Mixxx wiki page](https://mixxx.org/wiki/doku.php/troubleshooting#hid_a If you are trying to add support for another controller and try to debug the messages sent and received, you can build -it in debug mode if you modify the file Makefile and uncomment the following line: +it in debug mode +by providing `make` the `DEBUG=1` option: -`#CFLAGS += -g -DDEBUG` - -(i.e. remove the # sign) + $ make clean all DEBUG=1 Current Issues