]> git.donarmstrong.com Git - qmk_firmware.git/blob - lib/lufa/BuildTests/SingleUSBModeTest/makefile.test
fix the clueboard layout json
[qmk_firmware.git] / lib / lufa / BuildTests / SingleUSBModeTest / makefile.test
1 #
2 #             LUFA Library
3 #     Copyright (C) Dean Camera, 2017.
4 #
5 #  dean [at] fourwalledcubicle [dot] com
6 #           www.lufa-lib.org
7 #
8 # --------------------------------------
9 #         LUFA Project Makefile.
10 # --------------------------------------
11
12 # Run "make help" for target help.
13
14 MCU          =
15 ARCH         =
16 BOARD        = NONE
17 F_CPU        = $(F_USB)
18 DEBUG_LEVEL  = 0
19
20 ifeq ($(ARCH), AVR8)
21   F_USB      = 8000000
22 else ifeq ($(ARCH), XMEGA)
23   F_USB      = 48000000
24 else ifeq ($(ARCH), UC3)
25   F_USB      = 48000000
26 endif
27
28 OPTIMIZATION = 1
29 TARGET       = Test
30 SRC          = Test.c Dummy.S $(LUFA_SRC_USB)
31 LUFA_PATH    = ../../LUFA
32
33 # Generic C/C++ compiler flags
34 CC_FLAGS  = -Wextra
35 CC_FLAGS += -Werror
36 CC_FLAGS += -Wformat=2
37 CC_FLAGS += -Winit-self
38 CC_FLAGS += -Wswitch-enum
39 CC_FLAGS += -Wunused
40 CC_FLAGS += -Wundef
41 CC_FLAGS += -Wpointer-arith
42 CC_FLAGS += -Wcast-align
43 CC_FLAGS += -Wwrite-strings
44 CC_FLAGS += -Wlogical-op
45 CC_FLAGS += -Wmissing-declarations
46 CC_FLAGS += -Wmissing-field-initializers
47 CC_FLAGS += -Wmissing-format-attribute
48 CC_FLAGS += -Woverlength-strings
49
50 # Only enable rendundant declaration warnings for AVR8 target (FIXME)
51 ifeq ($(ARCH), AVR8)
52   CC_FLAGS += -Wredundant-decls
53 endif
54
55 # C compiler only flags
56 C_FLAGS += -Wmissing-parameter-type
57 C_FLAGS += -Wnested-externs
58
59 # Potential additional warnings to enable in the future (FIXME)
60 #CC_FLAGS += -Wswitch-default
61 #CC_FLAGS += -Wc++-compat
62 #CC_FLAGS += -Wcast-qual
63 #CC_FLAGS += -Wconversion
64 #CC_FLAGS += -Wjump-misses-init
65 #CC_FLAGS += -pedantic
66
67 # Include LUFA-specific DMBS extension modules
68 DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
69 include $(DMBS_LUFA_PATH)/lufa-sources.mk
70 include $(DMBS_LUFA_PATH)/lufa-gcc.mk
71
72 # Include common DMBS build system modules
73 DMBS_PATH      ?= $(LUFA_PATH)/Build/DMBS/DMBS
74 include $(DMBS_PATH)/core.mk
75 include $(DMBS_PATH)/gcc.mk