From 7264c46ddb723237b4ef8e847fab06fa5bb7ef33 Mon Sep 17 00:00:00 2001 From: mrbesen Date: Mon, 12 Jul 2021 23:24:01 +0200 Subject: [PATCH] makefile useses env variable to enable mutex --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ddb673e..bea2a28 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ TARGET = Log.o TEST = test -CFLAGS = -O2 -std=c++11 -Wall -Wextra -pedantic-errors -g +LOG_USEMUTEX ?= 0 +CFLAGS = -O2 -std=c++11 -Wall -Wextra -pedantic-errors -g -DLOG_USEMUTEX=$(LOG_USEMUTEX) .PHONY: all clean