3 # Copyright (C) Dean Camera, 2012.
5 # dean [at] fourwalledcubicle [dot] com
8 # --------------------------------------
9 # LUFA Project Makefile.
10 # --------------------------------------
19 else ifeq ($(ARCH), XMEGA)
21 else ifeq ($(ARCH), UC3)
27 SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)
28 LUFA_PATH = ../../LUFA/
30 # Generic C/C++ compiler flags
33 CC_FLAGS += -Wformat=2
34 CC_FLAGS += -Winit-self
35 CC_FLAGS += -Wswitch-enum
38 CC_FLAGS += -Wpointer-arith
39 CC_FLAGS += -Wcast-align
40 CC_FLAGS += -Wwrite-strings
41 CC_FLAGS += -Wlogical-op
42 CC_FLAGS += -Wmissing-declarations
43 CC_FLAGS += -Wmissing-field-initializers
44 CC_FLAGS += -Wmissing-format-attribute
45 CC_FLAGS += -Woverlength-strings
47 # Only enable rendundant declaration warnings for AVR8 target (FIXME)
49 CC_FLAGS += -Wredundant-decls
52 # C compiler only flags
53 C_FLAGS += -Wmissing-parameter-type
54 C_FLAGS += -Wnested-externs
56 # Potential additional warnings to enable in the future (FIXME)
57 #CC_FLAGS += -Wswitch-default
58 #CC_FLAGS += -Wc++-compat
59 #CC_FLAGS += -Wcast-qual
60 #CC_FLAGS += -Wconversion
61 #CC_FLAGS += -Wjump-misses-init
62 #CC_FLAGS += -pedantic
64 # Include LUFA build script makefiles
65 include $(LUFA_PATH)/Build/lufa.sources.in
66 include $(LUFA_PATH)/Build/lufa.build.in