Fix typos in the LUFAConfig.h header file. Add missing modules to the AVR8 architectu...
[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 = FATFs/ \
16 PetiteFATFs/ \
17 uip/
18
19 # Output message template for found warnings and errors
20 MESSAGE_TEMPLATE = "{file}:{line}: {severity} ({id}): {message}"
21
22 # Checks to suppress so that generated warnings are discarded
23 SUPPRESS_WARNINGS = variableScope \
24 missingInclude
25
26 # Extra paths to search for include files
27 INCLUDE_PATHS = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/
28
29 # Configuration options to pass to cppcheck
30 CPPCHECK_OPTIONS = --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) --inline-suppr --force --error-exitcode=1 --std=c99
31
32
33 all: begin staticcheck end
34
35 begin:
36 @echo Executing build test "StaticAnalysisTest".
37 @echo
38
39 end:
40 @echo Build test "StaticAnalysisTest" complete.
41 @echo
42
43 staticcheck:
44 cppcheck --quiet $(CPPCHECK_OPTIONS) --check-config $(LUFA_ROOT_PATH)
45 cppcheck --quiet $(CPPCHECK_OPTIONS) --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) $(LUFA_ROOT_PATH)
46
47 %:
48