summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 37ab224..6b8fda3 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ LIB_OUT = libbtree.so
SRC :=$(wildcard src/*.c)
OBJ :=$(addprefix obj/,$(notdir $(SRC:.c=.o)))
-.PHONY: clean
+.PHONY: clean check
test: debug
./$(OUT)
@@ -34,5 +34,8 @@ obj/%.o: src/%.c src/btree.h obj
obj:
mkdir -p $@
+check:
+ cppcheck --enable=all --suppress=unusedFunction src
+
clean:
rm -rf $(OUT) obj