summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5dc7c16..b06345b 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,10 @@ all: bfs
bfs: bftw.o color.o dstring.o eval.o exec.o main.o mtab.o opt.o parse.o printf.o stat.o typo.o util.o
$(CC) $(ALL_LDFLAGS) $^ -o $@
-release: CFLAGS := -O3 -flto $(WFLAGS) -DNDEBUG -g
+sanitized: CFLAGS := -g $(WFLAGS) -fsanitize=address -fsanitize=undefined
+sanitized: bfs
+
+release: CFLAGS := -g $(WFLAGS) -O3 -flto -DNDEBUG
release: bfs
%.o: %.c