Add a code audit production using cppcheck.
[open-adventure.git] / Makefile
index 6724a3b657bdf8deeffd6d887c63498b03d3acf6..62ec64a149d0049878f01a15fe134b21f954ad91 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,3 +121,6 @@ debug: CCFLAGS += -O0 --coverage -ggdb
 debug: linty
 debug: cheat
 
+CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
+cppcheck:
+       cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch]