X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=6651a111d3c827b1594eb1783b16b33b05fad3f0;hp=a3535321be7aa31d4f0bdd3a630c007c44ea1058;hb=b27f767cc6658a4f7500054c75887d69c340c0f8;hpb=b736e3bc8e0f0ef9dbe4431f737eb2630fc2c68d diff --git a/Makefile b/Makefile index a353532..6651a11 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ cheat: $(CHEAT_OBJS) dungeon.o check: advent cheat cd tests; $(MAKE) --quiet -coverage: debug cheat +coverage: debug cd tests; $(MAKE) coverage --quiet .SUFFIXES: .adoc .html .6 @@ -117,7 +117,12 @@ linty: CCFLAGS += -Winit-self linty: CCFLAGS += -Wpointer-arith linty: advent cheat -debug: CCFLAGS += -O0 --coverage -ggdb -U_FORTIFY_SOURCE +debug: CCFLAGS += -O0 +debug: CCFLAGS += --coverage +debug: CCFLAGS += -ggdb +debug: CCFLAGS += -U_FORTIFY_SOURCE +debug: CCFLAGS += -fsanitize=address +debug: CCFLAGS += -fsanitize=undefined debug: linty CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf