X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2b332d3231d54236e093dd6bfde5421ce26f7304..082537f5bd6b0620ff9b712b9370e5d0c01a61e3:/BuildTests/ModuleTest/makefile.test diff --git a/BuildTests/ModuleTest/makefile.test b/BuildTests/ModuleTest/makefile.test index 94004b8b3..f92ef9c33 100644 --- a/BuildTests/ModuleTest/makefile.test +++ b/BuildTests/ModuleTest/makefile.test @@ -9,10 +9,14 @@ # LUFA Project Makefile. # -------------------------------------- -MCU = at90usb1287 -ARCH = AVR8 +MCU = +ARCH = BOARD = NONE -F_CPU = 8000000 +F_CPU = $(F_USB) +OPTIMIZATION = 1 +TARGET = Test +SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB) +LUFA_PATH = ../../LUFA/ ifeq ($(ARCH), AVR8) F_USB = 8000000 @@ -22,13 +26,9 @@ else ifeq ($(ARCH), UC3) F_USB = 48000000 endif -OPTIMIZATION = 1 -TARGET = Test -SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB) -LUFA_PATH = ../../LUFA/ - -CC_FLAGS = -Wextra -#CC_FLAGS += -Werror # FIXME +# Generic C/C++ compiler flags +CC_FLAGS = -Wextra +CC_FLAGS += -Werror CC_FLAGS += -Wformat=2 CC_FLAGS += -Winit-self CC_FLAGS += -Wswitch-enum @@ -38,11 +38,9 @@ CC_FLAGS += -Wpointer-arith CC_FLAGS += -Wcast-align CC_FLAGS += -Wwrite-strings CC_FLAGS += -Wlogical-op -CC_FLAGS += -Wmissing-parameter-type CC_FLAGS += -Wmissing-declarations CC_FLAGS += -Wmissing-field-initializers CC_FLAGS += -Wmissing-format-attribute -CC_FLAGS += -Wnested-externs CC_FLAGS += -Woverlength-strings # Only enable rendundant declaration warnings for AVR8 target (FIXME) @@ -50,6 +48,10 @@ 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