diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-07-14 13:18:13 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-07-14 13:18:13 +0000 |
commit | b7e3c86e4e5d4262a608163176d0b01c0cc54b29 (patch) | |
tree | 1a3e64fe61c730c56a8c808eafc2d5398a187c28 /BuildTests | |
parent | d4980e58d420bd509a4bd7996aee74c4fbb01cd9 (diff) | |
download | lufa-b7e3c86e4e5d4262a608163176d0b01c0cc54b29.tar.gz lufa-b7e3c86e4e5d4262a608163176d0b01c0cc54b29.tar.bz2 lufa-b7e3c86e4e5d4262a608163176d0b01c0cc54b29.zip |
Rename build system module makefiles from "lufa.MODULE.in" to "lufa_MODULE.mk" to prevent makefile from assuming the include is an old style build rule, slowing down the build process.
Prevent the BUILD module from shell-executing multiple processes to determine the avr-size flags to speed up the build, unless the size rule is invoked.
Add warnings and set warnings as errors to the SingleUSBModeTest build test makefile.
Diffstat (limited to 'BuildTests')
-rw-r--r-- | BuildTests/BoardDriverTest/makefile | 2 | ||||
-rw-r--r-- | BuildTests/BoardDriverTest/makefile.test | 2 | ||||
-rw-r--r-- | BuildTests/BootloaderTest/makefile | 2 | ||||
-rw-r--r-- | BuildTests/ModuleTest/makefile | 2 | ||||
-rw-r--r-- | BuildTests/ModuleTest/makefile.test | 4 | ||||
-rw-r--r-- | BuildTests/SingleUSBModeTest/makefile | 2 | ||||
-rw-r--r-- | BuildTests/SingleUSBModeTest/makefile.test | 40 | ||||
-rw-r--r-- | BuildTests/StaticAnalysisTest/makefile | 4 |
8 files changed, 45 insertions, 13 deletions
diff --git a/BuildTests/BoardDriverTest/makefile b/BuildTests/BoardDriverTest/makefile index 11847511e..c46a00c0b 100644 --- a/BuildTests/BoardDriverTest/makefile +++ b/BuildTests/BoardDriverTest/makefile @@ -65,4 +65,4 @@ clean: .PHONY: all begin end makeboardlist testboards clean # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.core.in +include $(LUFA_PATH)/Build/lufa_core.mk diff --git a/BuildTests/BoardDriverTest/makefile.test b/BuildTests/BoardDriverTest/makefile.test index 06dfb5422..ea2c8368d 100644 --- a/BuildTests/BoardDriverTest/makefile.test +++ b/BuildTests/BoardDriverTest/makefile.test @@ -21,4 +21,4 @@ LUFA_PATH = ../../LUFA CC_FLAGS = -Werror # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.build.in
\ No newline at end of file +include $(LUFA_PATH)/Build/lufa_build.mk
\ No newline at end of file diff --git a/BuildTests/BootloaderTest/makefile b/BuildTests/BootloaderTest/makefile index d73bbf3aa..7b6b5d0bd 100644 --- a/BuildTests/BootloaderTest/makefile +++ b/BuildTests/BootloaderTest/makefile @@ -60,4 +60,4 @@ clean: .PHONY: all begin end testbootloaders clean # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.core.in +include $(LUFA_PATH)/Build/lufa_core.mk diff --git a/BuildTests/ModuleTest/makefile b/BuildTests/ModuleTest/makefile index 39baf283b..738152eab 100644 --- a/BuildTests/ModuleTest/makefile +++ b/BuildTests/ModuleTest/makefile @@ -63,4 +63,4 @@ clean: .PHONY: all arch_avr8 arch_xmega arch_uc3 begin end # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.core.in +include $(LUFA_PATH)/Build/lufa_core.mk diff --git a/BuildTests/ModuleTest/makefile.test b/BuildTests/ModuleTest/makefile.test index aad7e728a..b61c42b52 100644 --- a/BuildTests/ModuleTest/makefile.test +++ b/BuildTests/ModuleTest/makefile.test @@ -61,5 +61,5 @@ C_FLAGS += -Wnested-externs #CC_FLAGS += -pedantic # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.sources.in -include $(LUFA_PATH)/Build/lufa.build.in
\ No newline at end of file +include $(LUFA_PATH)/Build/lufa_sources.mk +include $(LUFA_PATH)/Build/lufa_build.mk
\ No newline at end of file diff --git a/BuildTests/SingleUSBModeTest/makefile b/BuildTests/SingleUSBModeTest/makefile index d31f5f028..bef8a5c70 100644 --- a/BuildTests/SingleUSBModeTest/makefile +++ b/BuildTests/SingleUSBModeTest/makefile @@ -53,4 +53,4 @@ clean: .PHONY: begin end compile clean # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.core.in +include $(LUFA_PATH)/Build/lufa_core.mk diff --git a/BuildTests/SingleUSBModeTest/makefile.test b/BuildTests/SingleUSBModeTest/makefile.test index 7f634821f..4d8ddc5f8 100644 --- a/BuildTests/SingleUSBModeTest/makefile.test +++ b/BuildTests/SingleUSBModeTest/makefile.test @@ -26,9 +26,41 @@ OPTIMIZATION = 1 TARGET = Test SRC = Test.c Dummy.S $(LUFA_SRC_USB) LUFA_PATH = ../../LUFA -CC_FLAGS = -# TODO: Add warnings and set warnings as errors + +# Generic C/C++ compiler flags +CC_FLAGS = -Wextra +CC_FLAGS += -Werror +CC_FLAGS += -Wformat=2 +CC_FLAGS += -Winit-self +CC_FLAGS += -Wswitch-enum +CC_FLAGS += -Wunused +CC_FLAGS += -Wundef +CC_FLAGS += -Wpointer-arith +CC_FLAGS += -Wcast-align +CC_FLAGS += -Wwrite-strings +CC_FLAGS += -Wlogical-op +CC_FLAGS += -Wmissing-declarations +CC_FLAGS += -Wmissing-field-initializers +CC_FLAGS += -Wmissing-format-attribute +CC_FLAGS += -Woverlength-strings + +# Only enable rendundant declaration warnings for AVR8 target (FIXME) +ifeq ($(ARCH), AVR8) +CC_FLAGS += -Wredundant-decls +endif + +# C compiler only flags +C_FLAGS += -Wmissing-parameter-type +C_FLAGS += -Wnested-externs + +# Potential additional warnings to enable in the future (FIXME) +#CC_FLAGS += -Wswitch-default +#CC_FLAGS += -Wc++-compat +#CC_FLAGS += -Wcast-qual +#CC_FLAGS += -Wconversion +#CC_FLAGS += -Wjump-misses-init +#CC_FLAGS += -pedantic # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.sources.in -include $(LUFA_PATH)/Build/lufa.build.in
\ No newline at end of file +include $(LUFA_PATH)/Build/lufa_sources.mk +include $(LUFA_PATH)/Build/lufa_build.mk
\ No newline at end of file diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile index b1ea232b2..6e6ed3c36 100644 --- a/BuildTests/StaticAnalysisTest/makefile +++ b/BuildTests/StaticAnalysisTest/makefile @@ -35,5 +35,5 @@ end: .PHONY: all begin end # Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa.core.in -include $(LUFA_PATH)/Build/lufa.cppcheck.in
\ No newline at end of file +include $(LUFA_PATH)/Build/lufa_core.mk +include $(LUFA_PATH)/Build/lufa_cppcheck.mk
\ No newline at end of file |