Add LINKER_RELAXATIONS option to the LUFA BUILD build system module.
[pub/USBasp.git] / BuildTests / StaticAnalysisTest / makefile
index 6f138af..abac69e 100644 (file)
@@ -1,36 +1,42 @@
-#\r
-#             LUFA Library\r
-#     Copyright (C) Dean Camera, 2012.\r
-#\r
-#  dean [at] fourwalledcubicle [dot] com\r
-#           www.lufa-lib.org\r
-#\r
-\r
-# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.\r
-\r
-LUFA_ROOT_PATH = ../..\r
-\r
-CPPCHECK_EXCLUDES = FATFs/            \\r
-                    PetiteFATFs/      \\r
-                    uip/\r
-CPPCHECK_INCLUDES = $(LUFA_ROOT_PATH)/LUFA/CodeTemplates/   \\r
-                    $(LUFA_ROOT_PATH)/Projects/AVRISP-MKII/\r
-CPPCHECK_PATH     = $(LUFA_ROOT_PATH)\r
-\r
-all: begin cppcheck-config cppcheck end\r
-\r
-begin:\r
-       @echo Executing build test "StaticAnalysisTest".\r
-       @echo\r
-\r
-end:\r
-       @echo Build test "StaticAnalysisTest" complete.\r
-       @echo\r
-\r
-%:\r
-\r
-.PHONY: all begin end\r
-\r
-# Include LUFA build script makefiles\r
-include $(LUFA_ROOT_PATH)/LUFA/Build/lufa.core.in\r
-include $(LUFA_ROOT_PATH)/LUFA/Build/lufa.cppcheck.in
\ No newline at end of file
+#
+#             LUFA Library
+#     Copyright (C) Dean Camera, 2012.
+#
+#  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
+LUFA_PATH := ../../LUFA/
+
+CPPCHECK_EXCLUDES := FATFs/            \
+                     PetiteFATFs/      \
+                     uip/
+
+CPPCHECK_INCLUDES := $(patsubst %/,%,$(LUFA_PATH))/CodeTemplates/               \
+                     $(patsubst %/,%,$(LUFA_PATH))/../Projects/AVRISP-MKII/
+
+CPPCHECK_FLAGS    := -U TEMPLATE_FUNC_NAME
+
+SRC               := $(patsubst %/,%,$(LUFA_PATH))/..
+
+all: begin cppcheck end
+
+begin:
+       @echo Executing build test "StaticAnalysisTest".
+       @echo
+
+end:
+       @echo Build test "StaticAnalysisTest" complete.
+       @echo
+
+%:
+       
+
+.PHONY: all begin end
+
+# Include LUFA build script makefiles
+include $(LUFA_PATH)/Build/lufa_core.mk
+include $(LUFA_PATH)/Build/lufa_cppcheck.mk
\ No newline at end of file