StaticAnalysis: Only fail on errors, only log warnings.
[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 CPPCHECK_FAIL_ON_WARNING := N
27
28 SRC := $(patsubst %/,%,$(LUFA_PATH))/..
29
30 # Build test cannot be run with multiple parallel jobs
31 .NOTPARALLEL:
32
33 all: begin cppcheck 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 %:
44
45 .PHONY: all begin end
46
47 # Include common DMBS build system modules
48 DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
49 include $(DMBS_PATH)/core.mk
50 include $(DMBS_PATH)/cppcheck.mk