X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/1132488e8f80b43473ce4e53db9dd8ce12e87e13..d4b45e8502a27c0f5ad3e26eabd2b30e84c20bac:/BuildTests/ModuleTest/makefile.uc3 diff --git a/BuildTests/ModuleTest/makefile.uc3 b/BuildTests/ModuleTest/makefile.uc3 index 5f5941deb..97c2e9c24 100644 --- a/BuildTests/ModuleTest/makefile.uc3 +++ b/BuildTests/ModuleTest/makefile.uc3 @@ -120,7 +120,8 @@ CPPSRC = Test_CPP.cpp # Even though the DOS/Win* filesystem matches both .s and .S the same, # it will preserve the spelling of the filenames, and gcc itself does # care about how the name is spelled on its command-line. -ASRC = Dummy.S +ASRC = Dummy.S \ + $(LUFA_PATH)/LUFA/Platform/UC3/Exception.S # Optimization level, can be [0, 1, 2, 3, s]. @@ -185,12 +186,36 @@ CFLAGS += -funsigned-char CFLAGS += -funsigned-bitfields CFLAGS += -ffunction-sections CFLAGS += -fno-strict-aliasing -CFLAGS += -Wall -CFLAGS += -Wstrict-prototypes CFLAGS += -masm-addr-pseudos CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CFLAGS += $(CSTANDARD) +CFLAGS += -Werror +CFLAGS += -Wall +CFLAGS += -Wextra +CFLAGS += -Wstrict-prototypes +CFLAGS += -Wformat=2 +CFLAGS += -Winit-self +CFLAGS += -Wswitch-enum +CFLAGS += -Wunused +CFLAGS += -Wundef +CFLAGS += -Wpointer-arith +CFLAGS += -Wcast-align +CFLAGS += -Wwrite-strings +CFLAGS += -Wlogical-op +CFLAGS += -Wmissing-parameter-type +CFLAGS += -Wmissing-declarations +CFLAGS += -Wmissing-field-initializers +CFLAGS += -Wmissing-format-attribute +#CFLAGS += -Wredundant-decls +CFLAGS += -Wnested-externs +CFLAGS += -Woverlength-strings +#CFLAGS += -Wswitch-default +#CFLAGS += -Wc++-compat +#CFLAGS += -Wcast-qual +#CFLAGS += -Wconversion +#CFLAGS += -Wjump-misses-init +#CFLAGS += -pedantic #---------------- Compiler Options C++ ---------------- @@ -225,7 +250,7 @@ CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) # files -- see avr-libc docs [FIXME: not yet described there] # -listing-cont-lines: Sets the maximum number of continuation lines of hex # dump that will be displayed for a given single line of source input. -ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100 +ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst) #---------------- Linker Options ---------------- @@ -456,7 +481,9 @@ clean_list : doxygen: @echo Generating Project Documentation \($(TARGET)\)... - @doxygen Doxygen.conf + @if ( doxygen Doxygen.conf 2>&1 | grep ": warning:" ;); then \ + exit 1; \ + fi; @echo Documentation Generation Complete. clean_doxygen: