2012-06-07 22:49:47 +02:00
|
|
|
#
|
|
|
|
# LUFA Library
|
2013-01-03 12:37:33 +01:00
|
|
|
# Copyright (C) Dean Camera, 2013.
|
2012-06-07 22:49:47 +02:00
|
|
|
#
|
|
|
|
# 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
|
2012-06-23 19:02:15 +02:00
|
|
|
LUFA_PATH := ../../LUFA/
|
2012-06-07 22:49:47 +02:00
|
|
|
|
2012-06-23 19:02:15 +02:00
|
|
|
CPPCHECK_EXCLUDES := FATFs/ \
|
|
|
|
PetiteFATFs/ \
|
|
|
|
uip/
|
2012-09-15 16:52:15 +02:00
|
|
|
|
2012-06-23 19:02:15 +02:00
|
|
|
CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ \
|
|
|
|
$(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
|
2012-06-10 22:08:02 +02:00
|
|
|
|
2012-10-14 22:18:46 +02:00
|
|
|
CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__
|
2012-09-15 16:52:15 +02:00
|
|
|
|
2012-06-23 19:02:15 +02:00
|
|
|
SRC := $(patsubst %/,%,$(LUFA_PATH))/..
|
2012-06-07 22:49:47 +02:00
|
|
|
|
2012-10-14 22:18:46 +02:00
|
|
|
# Build test cannot be run with multiple parallel jobs
|
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2012-07-10 23:13:09 +02:00
|
|
|
all: begin cppcheck end
|
2012-06-07 22:49:47 +02:00
|
|
|
|
|
|
|
begin:
|
|
|
|
@echo Executing build test "StaticAnalysisTest".
|
|
|
|
@echo
|
|
|
|
|
|
|
|
end:
|
|
|
|
@echo Build test "StaticAnalysisTest" complete.
|
|
|
|
@echo
|
|
|
|
|
|
|
|
%:
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all begin end
|
|
|
|
|
|
|
|
# Include LUFA build script makefiles
|
2012-07-14 15:18:13 +02:00
|
|
|
include $(LUFA_PATH)/Build/lufa_core.mk
|
|
|
|
include $(LUFA_PATH)/Build/lufa_cppcheck.mk
|