diff options
| author | verdant <im@verdant.ee> | 2026-07-28 14:50:24 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-28 14:50:24 +0800 |
| commit | 9622143a4c8d2908cbb797746f31e63a108cb422 (patch) | |
| tree | 04ff9aaf23887c2a5bea56ef7d154c8b0b76d011 | |
| parent | fe423ed2794273445ad51332d08b19155bcbc3e8 (diff) | |
| download | sf-9622143a4c8d2908cbb797746f31e63a108cb422.tar.gz sf-9622143a4c8d2908cbb797746f31e63a108cb422.zip | |
Add analyze target to Makefile
| -rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |
