Fix typos in recursive make rules.
[pub/USBasp.git] / BuildTests / ModuleTest / makefile.test
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2012.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8 # --------------------------------------
9 # LUFA Project Makefile.
10 # --------------------------------------
11
12 MCU = at90usb1287
13 ARCH = AVR8
14 BOARD = NONE
15 F_CPU = 8000000
16
17 ifeq ($(ARCH), AVR8)
18 F_USB = 8000000
19 else ifeq ($(ARCH), XMEGA)
20 F_USB = 48000000
21 else ifeq ($(ARCH), UC3)
22 F_USB = 48000000
23 endif
24
25 OPTIMIZATION = 1
26 TARGET = Test
27 SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)
28 LUFA_PATH = ../../LUFA/
29
30 # Generic C/C++ compiler flags
31 CC_FLAGS = -Wextra
32 CC_FLAGS += -Werror
33 CC_FLAGS += -Wformat=2
34 CC_FLAGS += -Winit-self
35 CC_FLAGS += -Wswitch-enum
36 CC_FLAGS += -Wunused
37 CC_FLAGS += -Wundef
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
46
47 # Only enable rendundant declaration warnings for AVR8 target (FIXME)
48 ifeq ($(ARCH), AVR8)
49 CC_FLAGS += -Wredundant-decls
50 endif
51
52 # C compiler only flags
53 C_FLAGS += -Wmissing-parameter-type
54 C_FLAGS += -Wnested-externs
55
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
63
64 # Include LUFA build script makefiles
65 include $(LUFA_PATH)/Build/lufa.sources.in
66 include $(LUFA_PATH)/Build/lufa.build.in