summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2022-08-30 16:22:44 +0000
committer0scar <qgt268@alumni.ku.dk>2022-08-30 16:22:44 +0000
commitcbdfa931877f484e448b04f5f954e761cf207854 (patch)
tree867d6460e472a51b6bdc4f3bbb719ee829d6c38f /Makefile
parent856e859c5c6ec9e6033adc733fda902824c6d675 (diff)
Add check target to makefile
Diffstat (limited to 'Makefile')
-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