diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-02-18 10:33:26 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-03-18 12:34:08 -0400 |
commit | c3b43840431b059266df6c8fcc051598e38457ef (patch) | |
tree | 218577aed257bceeb634de5c8605c53cf41b4f33 | |
parent | 85caf29cfd2f40ef10ed76d425bb89a5f8f45a1a (diff) | |
download | bfs-c3b43840431b059266df6c8fcc051598e38457ef.tar.xz |
New 'sanitized' make target
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |