Switch over Demos, Bootloaders and Projects to the new and improved build system.
[pub/lufa.git] / BuildTests / ModuleTest / makefile.xmega
index fd54a57..0a2f501 100644 (file)
@@ -123,8 +123,7 @@ include $(LUFA_PATH)/LUFA/makefile
 SRC = Test_C.c                   \\r
       $(LUFA_SRC_USB)            \\r
       $(LUFA_SRC_USBCLASS)       \\r
-      $(LUFA_SRC_SERIAL)         \\r
-      $(LUFA_SRC_SCHEDULER)\r
+      $(LUFA_SRC_SERIAL)\r
 \r
 \r
 # List C++ source files here. (C dependencies are automatically generated.)\r
@@ -144,7 +143,7 @@ ASRC = Dummy.S
 # Optimization level, can be [0, 1, 2, 3, s]. \r
 #     0 = turn off optimization. s = optimize for size.\r
 #     (Note: 3 is not always the best optimization level. See avr-libc FAQ.)\r
-OPT = s\r
+OPT = 1\r
 \r
 \r
 # List any extra directories to look for include files here.\r
@@ -209,11 +208,36 @@ CFLAGS += -fno-inline-small-functions
 CFLAGS += -fpack-struct\r
 CFLAGS += -fshort-enums\r
 CFLAGS += -fno-strict-aliasing\r
-CFLAGS += -Wall\r
-CFLAGS += -Wstrict-prototypes\r
-CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)\r
+CFLAGS += -fno-split-wide-types\r
+#CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)\r
 CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))\r
 CFLAGS += $(CSTANDARD)\r
+CFLAGS += -Werror\r
+CFLAGS += -Wall\r
+CFLAGS += -Wextra\r
+CFLAGS += -Wstrict-prototypes\r
+CFLAGS += -Wformat=2\r
+CFLAGS += -Winit-self\r
+CFLAGS += -Wswitch-enum\r
+CFLAGS += -Wunused\r
+CFLAGS += -Wundef\r
+CFLAGS += -Wpointer-arith\r
+CFLAGS += -Wcast-align\r
+CFLAGS += -Wwrite-strings\r
+CFLAGS += -Wlogical-op\r
+CFLAGS += -Wmissing-parameter-type\r
+CFLAGS += -Wmissing-declarations\r
+CFLAGS += -Wmissing-field-initializers\r
+CFLAGS += -Wmissing-format-attribute\r
+CFLAGS += -Wredundant-decls\r
+CFLAGS += -Wnested-externs\r
+CFLAGS += -Woverlength-strings\r
+#CFLAGS += -Wswitch-default\r
+#CFLAGS += -Wc++-compat\r
+#CFLAGS += -Wcast-qual\r
+#CFLAGS += -Wconversion\r
+#CFLAGS += -Wjump-misses-init\r
+#CFLAGS += -pedantic\r
 \r
 \r
 #---------------- Compiler Options C++ ----------------\r
@@ -235,7 +259,7 @@ CPPFLAGS += -fno-strict-aliasing
 CPPFLAGS += -fno-exceptions\r
 CPPFLAGS += -Wall\r
 CPPFLAGS += -Wundef\r
-CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst)\r
+#CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst)\r
 CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))\r
 #CPPFLAGS += $(CSTANDARD)\r
 \r
@@ -249,7 +273,8 @@ CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 #             files -- see avr-libc docs [FIXME: not yet described there]\r
 #  -listing-cont-lines: Sets the maximum number of continuation lines of hex \r
 #       dump that will be displayed for a given single line of source input.\r
-ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100\r
+ASFLAGS = $(ADEFS)\r
+#ASFLAGS += -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100\r
 \r
 \r
 #---------------- Library Options ----------------\r
@@ -306,7 +331,7 @@ EXTMEMOPTS =
 #  -Wl,...:     tell GCC to pass this to linker.\r
 #    -Map:      create map file\r
 #    --cref:    add cross reference to  map file\r
-LDFLAGS  = -Wl,-Map=$(TARGET).map,--cref\r
+#LDFLAGS  = -Wl,-Map=$(TARGET).map,--cref\r
 LDFLAGS += -Wl,--relax \r
 LDFLAGS += -Wl,--gc-sections\r
 LDFLAGS += $(EXTMEMOPTS)\r
@@ -430,7 +455,7 @@ LST = $(SRC:%.c=$(OBJDIR)/%.lst) $(CPPSRC:%.cpp=$(OBJDIR)/%.lst) $(ASRC:%.S=$(OB
 \r
 \r
 # Compiler flags to generate dependency files.\r
-GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d\r
+#GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d\r
 \r
 \r
 # Combine all necessary flags and optional flags.\r
@@ -676,7 +701,9 @@ clean_list :
 \r
 doxygen:\r
        @echo Generating Project Documentation \($(TARGET)\)...\r
-       @doxygen Doxygen.conf\r
+       @if ( ( cat Doxygen.conf ; echo "HTML_STYLESHEET=$(LUFA_PATH)/LUFA/DoxygenPages/Style/Style.css" ) | doxygen - 2>&1 | grep -v "warning: ignoring unsupported tag" ;); then \\r
+         exit 1; \\r
+       fi;\r
        @echo Documentation Generation Complete.\r
 \r
 clean_doxygen:\r