aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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)