makefile 1.13 KB
Newer Older
1
2
#
#             LUFA Library
Dean Camera's avatar
Dean Camera committed
3
#     Copyright (C) Dean Camera, 2017.
4
5
6
7
8
9
10
11
#
#  dean [at] fourwalledcubicle [dot] com
#           www.lufa-lib.org
#

# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.

# Path to the LUFA library core
12
LUFA_PATH := ../../LUFA/
13

14
15
16
CPPCHECK_EXCLUDES := FATFs/            \
                     PetiteFATFs/      \
                     uip/
17

18
19
CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/               \
                     $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
20

21
CPPCHECK_FLAGS    := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__
22

23
24
CPPCHECK_SUPPRESS := variableScope missingInclude unusedFunction

25
SRC               := $(patsubst %/,%,$(LUFA_PATH))/..
26

27
28
29
# Build test cannot be run with multiple parallel jobs
.NOTPARALLEL:

30
all: begin cppcheck end
31
32
33
34
35
36
37
38
39
40

begin:
	@echo Executing build test "StaticAnalysisTest".
	@echo

end:
	@echo Build test "StaticAnalysisTest" complete.
	@echo

%:
Dean Camera's avatar
Dean Camera committed
41

42
43
.PHONY: all begin end

44
45
46
47
# Include common DMBS build system modules
DMBS_PATH      ?= $(LUFA_PATH)/Build/DMBS/DMBS
include $(DMBS_PATH)/core.mk
include $(DMBS_PATH)/cppcheck.mk