From 9622143a4c8d2908cbb797746f31e63a108cb422 Mon Sep 17 00:00:00 2001 From: verdant Date: Tue, 28 Jul 2026 14:50:24 +0800 Subject: Add analyze target to Makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5e637d8..883e208 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ CC=gcc #LDFLAGS=-lncurses -lmagic CFLAGS=-Wall -Wextra -Wpedantic -Wstrict-prototypes -Wmissing-prototypes -g -LDFLAGS=-lncurses -lmagic -fsanitize=address -fsanitize=undefined -#LDFLAGS=-lncurses -lmagic +#LDFLAGS=-lncurses -lmagic -fsanitize=address -fsanitize=undefined +LDFLAGS=-lncurses -lmagic TARGET=sf SRCS=$(wildcard *.c) @@ -33,6 +33,9 @@ debug: $(TARGET) $(CC) $(OBJS) $(LDFLAGS) -O0 -o $@ valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all --undef-value-errors=no --log-file=log ./sf +analyze: + cppcheck --enable=all --suppress=missingIncludeSystem . + clang --analyze *.c clean: rm -f $(OBJS) $(TARGET) -- cgit v1.2.3