makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2018.
  4. #
  5. # dean [at] fourwalledcubicle [dot] com
  6. # www.lufa-lib.org
  7. #
  8. # Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
  9. # Path to the LUFA library core
  10. LUFA_PATH := ../../LUFA/
  11. CPPCHECK_EXCLUDES := FATFs/ \
  12. PetiteFATFs/ \
  13. uip/
  14. CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/ \
  15. $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
  16. CPPCHECK_FLAGS := -U TEMPLATE_FUNC_NAME -U __GNUC__ -U __DOXYGEN__
  17. CPPCHECK_SUPPRESS := variableScope missingInclude unusedFunction
  18. SRC := $(patsubst %/,%,$(LUFA_PATH))/..
  19. # Build test cannot be run with multiple parallel jobs
  20. .NOTPARALLEL:
  21. all: begin cppcheck end
  22. begin:
  23. @echo Executing build test "StaticAnalysisTest".
  24. @echo
  25. end:
  26. @echo Build test "StaticAnalysisTest" complete.
  27. @echo
  28. %:
  29. .PHONY: all begin end
  30. # Include common DMBS build system modules
  31. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  32. include $(DMBS_PATH)/core.mk
  33. include $(DMBS_PATH)/cppcheck.mk