aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-28 10:40:22 +0200
committerBad Diode <bd@badd10de.dev>2021-10-28 10:40:22 +0200
commitd04aea3c5875cd2859d6ab961256b11189c49839 (patch)
tree911b6df338dde38ed28c447cfba999bcc3cb1743 /Makefile
parent4515d21211263a2c7367ec20ec01ce9efaae1d18 (diff)
downloadbdl-d04aea3c5875cd2859d6ab961256b11189c49839.tar.gz
bdl-d04aea3c5875cd2859d6ab961256b11189c49839.zip
Prepare for closure capture
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