summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-02-18 10:33:26 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-03-18 12:34:08 -0400
commitc3b43840431b059266df6c8fcc051598e38457ef (patch)
tree218577aed257bceeb634de5c8605c53cf41b4f33 /Makefile
parent85caf29cfd2f40ef10ed76d425bb89a5f8f45a1a (diff)
downloadbfs-c3b43840431b059266df6c8fcc051598e38457ef.tar.xz
New 'sanitized' make target
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