aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 30784b2..05656f9 100755
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ CFLAGS += $(INC_FLAGS)
20LDFLAGS := 20LDFLAGS :=
21LDLIBS := 21LDLIBS :=
22RELEASE_CFLAGS := -DNDEBUG -O2 -static 22RELEASE_CFLAGS := -DNDEBUG -O2 -static
23DEBUG_CFLAGS := -DDEBUG -O0 -g -fsanitize=address 23DEBUG_CFLAGS := -DDEBUG -O0 -g
24 24
25.PHONY: build tests run clean 25.PHONY: build tests run clean
26 26
@@ -30,6 +30,8 @@ DEBUG_CFLAGS := -DDEBUG -O0 -g -fsanitize=address
30DEBUG ?= 0 30DEBUG ?= 0
31ifeq ($(DEBUG), 1) 31ifeq ($(DEBUG), 1)
32 CFLAGS += $(DEBUG_CFLAGS) 32 CFLAGS += $(DEBUG_CFLAGS)
33else ifeq ($(DEBUG), 2)
34 CFLAGS += $(DEBUG_CFLAGS) -fsanitize=address
33else 35else
34 CFLAGS += $(RELEASE_CFLAGS) 36 CFLAGS += $(RELEASE_CFLAGS)
35endif 37endif