diff --git a/Makefile b/Makefile
index 7c4fe94a7890e7b6dec8ed742a22dcaca4f04594..677f69fcc945839b7aca25dd6953da5f2ac2978f 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ profile: clean all
 # make static - will perform static analysis in the matter currently used
 #               on the autograder
 static:
-	cppcheck --enable=all --suppress=missingIncludeSystem *.c* *.h*
+	cppcheck --enable=all --suppress=missingIncludeSystem $(SOURCES) *.h *.hpp
 
 # highest target; sews together all objects into executable
 all: $(EXECUTABLE)