Pull out common options in the StaticAnalysisTest build test makefile into a seperate...
[pub/USBasp.git] / BuildTests / StaticAnalysisTest / makefile
index b065a90..817727e 100644 (file)
@@ -26,6 +26,9 @@ SUPPRESS_WARNINGS = variableScope     \
 # Extra paths to search for include files\r
 INCLUDE_PATHS     = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/\r
 \r
+# Configuration options to pass to cppcheck\r
+CPPCHECK_OPTIONS  = --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --error-exitcode=1 --std=c99\r
+\r
 \r
 all: begin staticcheck end\r
 \r
@@ -38,8 +41,8 @@ end:
        @echo\r
 \r
 staticcheck:\r
-       cppcheck --quiet --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --check-config $(LUFA_ROOT_PATH)\r
-       cppcheck --quiet --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --error-exitcode=1 --std=c99 --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --inconclusive $(LUFA_ROOT_PATH)\r
+       cppcheck --quiet $(CPPCHECK_OPTIONS) --check-config $(LUFA_ROOT_PATH)\r
+       cppcheck --quiet $(CPPCHECK_OPTIONS) --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) $(LUFA_ROOT_PATH)\r
 \r
 %:\r
        
\ No newline at end of file