From ea441ee4ae1501802ad680faf88218a49b4e4826 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 9 Dec 2018 23:20:51 -0800 Subject: [PATCH] make test can accept DEBUGLEVEL argument --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c63db80e..1b1d27c1 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,8 @@ zlibwrapper: lib ## test: run long-duration tests .PHONY: test -test: MOREFLAGS += -g -DDEBUGLEVEL=1 -Werror +DEBUGLEVEL ?= 1 +test: MOREFLAGS += -g -DDEBUGLEVEL=$(DEBUGLEVEL) -Werror test: MOREFLAGS="$(MOREFLAGS)" $(MAKE) -j -C $(PRGDIR) allVariants $(MAKE) -C $(TESTDIR) $@