X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/b762780343dd505f7bfe5673cbcffb0b938d7064..c7344c22ac700dacf55a8dc729111dd7781c5fed:/BuildTests/StaticAnalysisTest/makefile diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile index 1556bbd90..6f138af89 100644 --- a/BuildTests/StaticAnalysisTest/makefile +++ b/BuildTests/StaticAnalysisTest/makefile @@ -1,6 +1,6 @@ # # LUFA Library -# Copyright (C) Dean Camera, 2011. +# Copyright (C) Dean Camera, 2012. # # dean [at] fourwalledcubicle [dot] com # www.lufa-lib.org @@ -8,16 +8,29 @@ # Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool. -# Path to the root of the LUFA tree to scan -LUFA_ROOT_PATH = ../../ +LUFA_ROOT_PATH = ../.. -# Filenames or directories (including fragments) to exclude from the analysis -EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/ +CPPCHECK_EXCLUDES = FATFs/ \ + PetiteFATFs/ \ + uip/ +CPPCHECK_INCLUDES = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/ \ + $(LUFA_ROOT_PATH)/Projects/AVRISP-MKII/ +CPPCHECK_PATH = $(LUFA_ROOT_PATH) -# Output message template for found warnings and errors -MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}" +all: begin cppcheck-config cppcheck end -all: - cppcheck -q -f --error-exitcode=1 --template $(MESSAGE_TEMPLATE) --enable=style --suppress=variableScope $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH) - -%: \ No newline at end of file +begin: + @echo Executing build test "StaticAnalysisTest". + @echo + +end: + @echo Build test "StaticAnalysisTest" complete. + @echo + +%: + +.PHONY: all begin end + +# Include LUFA build script makefiles +include $(LUFA_ROOT_PATH)/LUFA/Build/lufa.core.in +include $(LUFA_ROOT_PATH)/LUFA/Build/lufa.cppcheck.in \ No newline at end of file