aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-28 14:50:24 +0800
committerverdant <im@verdant.ee>2026-07-28 14:50:24 +0800
commit9622143a4c8d2908cbb797746f31e63a108cb422 (patch)
tree04ff9aaf23887c2a5bea56ef7d154c8b0b76d011 /Makefile
parentfe423ed2794273445ad51332d08b19155bcbc3e8 (diff)
downloadsf-9622143a4c8d2908cbb797746f31e63a108cb422.tar.gz
sf-9622143a4c8d2908cbb797746f31e63a108cb422.zip
Add analyze target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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)