From b7e837aef53e310889bcd80cb6b9fa01d8f95a36 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 2 May 2024 02:16:24 +0200 Subject: [PATCH] Valgrind & cppcheck targets --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 38a94b5..1a990a8 100644 --- a/Makefile +++ b/Makefile @@ -46,5 +46,11 @@ clean: docs: doxygen Doxyfile +cppcheck: + cppcheck --enable=all --inconclusive --std=c11 --language=c --platform=unix64 --suppress=missingIncludeSystem $(SRCS) + +valgrind: $(TARGET) + valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./$(TARGET) + # Mark rules as phony .PHONY: all run clean docs docs