]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/common.mk
Squashed 'tmk_core/' changes from ee8c5ba..d5c5ac6
[tmk_keyboard.git] / tool / mbed / common.mk
1 OBJECTS += \
2 $(OBJDIR)/common/action.o \
3 $(OBJDIR)/common/action_tapping.o \
4 $(OBJDIR)/common/action_macro.o \
5 $(OBJDIR)/common/action_layer.o \
6 $(OBJDIR)/common/action_util.o \
7 $(OBJDIR)/common/host.o \
8 $(OBJDIR)/common/keymap.o \
9 $(OBJDIR)/common/keyboard.o \
10 $(OBJDIR)/common/print.o \
11 $(OBJDIR)/common/debug.o \
12 $(OBJDIR)/common/util.o \
13 $(OBJDIR)/common/hook.o \
14 $(OBJDIR)/common/mbed/suspend.o \
15 $(OBJDIR)/common/mbed/timer.o \
16 $(OBJDIR)/common/mbed/xprintf.o \
17 $(OBJDIR)/common/mbed/bootloader.o \
18
19 INCLUDE_PATHS += \
20 -I$(TMK_DIR)/common \
21 -I$(TMK_DIR)/protocol
22
23 CC_FLAGS += -include $(CONFIG_H)
24
25
26
27 # Option modules
28 ifdef BOOTMAGIC_ENABLE
29 $(error Not Supported)
30 OBJECTS += $(OBJDIR)/common/bootmagic.o
31 OBJECTS += $(OBJDIR)/common/mbed/eeprom.o
32 OPT_DEFS += -DBOOTMAGIC_ENABLE
33 endif
34
35 ifdef MOUSEKEY_ENABLE
36 OBJECTS += $(OBJDIR)/common/mousekey.o
37 OPT_DEFS += -DMOUSEKEY_ENABLE
38 OPT_DEFS += -DMOUSE_ENABLE
39 endif
40
41 ifdef EXTRAKEY_ENABLE
42 $(error Not Supported)
43 OPT_DEFS += -DEXTRAKEY_ENABLE
44 endif
45
46 ifdef CONSOLE_ENABLE
47 $(error Not Supported)
48 OPT_DEFS += -DCONSOLE_ENABLE
49 else
50 OPT_DEFS += -DNO_PRINT
51 OPT_DEFS += -DNO_DEBUG
52 endif
53
54 ifdef COMMAND_ENABLE
55 $(error Not Supported)
56 SRC += common/command.c
57 OPT_DEFS += -DCOMMAND_ENABLE
58 endif
59
60 ifdef NKRO_ENABLE
61 $(error Not Supported)
62 OPT_DEFS += -DNKRO_ENABLE
63 endif
64
65 ifdef SLEEP_LED_ENABLE
66 $(error Not Supported)
67 SRC += common/mbed/sleep_led.c
68 OPT_DEFS += -DSLEEP_LED_ENABLE
69 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
70 endif
71
72 ifdef BACKLIGHT_ENABLE
73 $(error Not Supported)
74 SRC += common/backlight.c
75 OPT_DEFS += -DBACKLIGHT_ENABLE
76 endif
77
78 ifdef KEYMAP_SECTION_ENABLE
79 $(error Not Supported)
80 OPT_DEFS += -DKEYMAP_SECTION_ENABLE
81 EXTRALDFLAGS = -Wl,-L$(TMK_DIR),-Tldscript_keymap_avr5.x
82 endif
Imprint / Impressum