OBJECT_FILES = $(filter %.o, $(C_SOURCE:%.c=%.o) $(CPP_SOURCE:%.cpp=%.o) $(ASM_SOURCE:%.S=%.o))\r
\r
# Create a list of flags to pass to the compiler\r
-ifneq ($(ARCH), AVR8)\r
+ifeq ($(ARCH), AVR8)\r
CC_FLAGS += -mmcu=$(MCU) -gdwarf-2 -fshort-enums -fno-inline-small-functions -fpack-struct\r
CROSS = avr-\r
else ifeq ($(ARCH), XMEGA)\r
else ifeq ($(ARCH), UC3)\r
CC_FLAGS += -mpart=$(MCU) -g3 -masm-addr-pseudos\r
CROSS = avr32-\r
+else\r
+ $(error Unsupported architecture.)\r
endif\r
CC_FLAGS += -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections\r
CC_FLAGS += -Wall -Wstrict-prototypes\r