Buld Tests: Update static analysis test for cppcheck 1.86.
[pub/USBasp.git] / BuildTests / StaticAnalysisTest / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2019.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8
9 # Static analysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
10
11 # Path to the LUFA library core
12 LUFA_PATH := ../../LUFA/
13
14 CPPCHECK_EXCLUDES := FATFs/ \
15 PetiteFATFs/ \
16 uip/ \
17 HID/HostLoaderApp/
18
19 CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ \
20 $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
21
22 CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__
23
24 CPPCHECK_SUPPRESS := variableScope missingInclude noValidConfiguration unusedFunction knownConditionTrueFalse ConfigurationNotChecked
25
26 SRC := $(patsubst %/,%,$(LUFA_PATH))/..
27
28 # Build test cannot be run with multiple parallel jobs
29 .NOTPARALLEL:
30
31 all: begin cppcheck end
32
33 begin:
34 @echo Executing build test "StaticAnalysisTest".
35 @echo
36
37 end:
38 @echo Build test "StaticAnalysisTest" complete.
39 @echo
40
41 %:
42
43 .PHONY: all begin end
44
45 # Include common DMBS build system modules
46 DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
47 include $(DMBS_PATH)/core.mk
48 include $(DMBS_PATH)/cppcheck.mk