Minor documentation improvements.
[pub/USBasp.git] / BuildTests / StaticAnalysisTest / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2011.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8
9 # Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
10
11 # Path to the root of the LUFA tree to scan
12 LUFA_ROOT_PATH = ../../
13
14 # Filenames or directories (including fragments) to exclude from the analysis
15 EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
16
17 # Output message template for found warnings and errors
18 MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
19
20 # Checks to suppress so that generated warnings are discarded
21 SUPPRESS_WARNINGS = variableScope unusedFunction missingInclude
22
23 all:
24 cppcheck -q --std=c99 --check-config $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
25 cppcheck -q -f --std=c99 --error-exitcode=1 --inline-suppr --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
26
27 %: