X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/1132488e8f80b43473ce4e53db9dd8ce12e87e13..d4684b29b9a3a4b45b6422d0f1cf6c79639c84c8:/BuildTests/ModuleTest/makefile.uc3 diff --git a/BuildTests/ModuleTest/makefile.uc3 b/BuildTests/ModuleTest/makefile.uc3 index 5f5941deb..5628748ee 100644 --- a/BuildTests/ModuleTest/makefile.uc3 +++ b/BuildTests/ModuleTest/makefile.uc3 @@ -105,8 +105,7 @@ include $(LUFA_PATH)/LUFA/makefile # List C source files here. (C dependencies are automatically generated.) SRC = Test_C.c \ $(LUFA_SRC_USB) \ - $(LUFA_SRC_USBCLASS) \ - $(LUFA_SRC_SCHEDULER) + $(LUFA_SRC_USBCLASS) # List C++ source files here. (C dependencies are automatically generated.) @@ -120,13 +119,14 @@ 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]. # 0 = turn off optimization. s = optimize for size. # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) -OPT = s +OPT = 1 # List any extra directories to look for include files here. @@ -185,12 +185,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 += -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++ ---------------- @@ -211,7 +235,7 @@ CPPFLAGS += -fno-exceptions CPPFLAGS += -masm-addr-pseudos CPPFLAGS += -Wall CPPFLAGS += -Wundef -CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst) +#CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst) CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) #CPPFLAGS += $(CSTANDARD) @@ -225,14 +249,15 @@ 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) +#ASFLAGS += -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100 #---------------- Linker Options ---------------- # -Wl,...: tell GCC to pass this to linker. # -Map: create map file # --cref: add cross reference to map file -LDFLAGS = -Wl,-Map=$(TARGET).map,--cref +#LDFLAGS = -Wl,-Map=$(TARGET).map,--cref LDFLAGS += -Wl,--gc-sections --rodata-writable LDFLAGS += -Wl,--direct-data #LDFLAGS += -T linker_script.x @@ -285,7 +310,7 @@ LST = $(SRC:%.c=$(OBJDIR)/%.lst) $(CPPSRC:%.cpp=$(OBJDIR)/%.lst) $(ASRC:%.S=$(OB # Compiler flags to generate dependency files. -GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d +#GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d # Combine all necessary flags and optional flags. @@ -456,7 +481,9 @@ clean_list : doxygen: @echo Generating Project Documentation \($(TARGET)\)... - @doxygen Doxygen.conf + @if ( ( cat Doxygen.conf ; echo "HTML_STYLESHEET=$(LUFA_PATH)/LUFA/DoxygenPages/Style/Style.css" ) | doxygen - 2>&1 | grep -v "warning: ignoring unsupported tag" ;); then \ + exit 1; \ + fi; @echo Documentation Generation Complete. clean_doxygen: