diff options
Diffstat (limited to 'tool/mbed/common.mk')
| -rw-r--r-- | tool/mbed/common.mk | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/tool/mbed/common.mk b/tool/mbed/common.mk new file mode 100644 index 000000000..1bd7d6edb --- /dev/null +++ b/tool/mbed/common.mk | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | COMMON_DIR = common | ||
| 2 | OBJECTS += \ | ||
| 3 | $(OBJDIR)/$(COMMON_DIR)/action.o \ | ||
| 4 | $(OBJDIR)/$(COMMON_DIR)/action_tapping.o \ | ||
| 5 | $(OBJDIR)/$(COMMON_DIR)/action_macro.o \ | ||
| 6 | $(OBJDIR)/$(COMMON_DIR)/action_layer.o \ | ||
| 7 | $(OBJDIR)/$(COMMON_DIR)/action_util.o \ | ||
| 8 | $(OBJDIR)/$(COMMON_DIR)/host.o \ | ||
| 9 | $(OBJDIR)/$(COMMON_DIR)/keymap.o \ | ||
| 10 | $(OBJDIR)/$(COMMON_DIR)/keyboard.o \ | ||
| 11 | $(OBJDIR)/$(COMMON_DIR)/util.o \ | ||
| 12 | $(OBJDIR)/$(COMMON_DIR)/mbed/suspend.o \ | ||
| 13 | $(OBJDIR)/$(COMMON_DIR)/mbed/timer.o \ | ||
| 14 | $(OBJDIR)/$(COMMON_DIR)/mbed/xprintf.o \ | ||
| 15 | $(OBJDIR)/$(COMMON_DIR)/mbed/bootloader.o \ | ||
| 16 | |||
| 17 | INCLUDE_PATHS += \ | ||
| 18 | -I$(TMK_DIR)/$(COMMON_DIR) | ||
| 19 | |||
| 20 | CC_FLAGS += -include $(CONFIG_H) | ||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | # Option modules | ||
| 25 | ifdef BOOTMAGIC_ENABLE | ||
| 26 | $(error Not Supported) | ||
| 27 | OBJECTS += $(OBJDIR)/$(COMMON_DIR)/bootmagic.o | ||
| 28 | OBJECTS += $(OBJDIR)/$(COMMON_DIR)/mbed/eeprom.o | ||
| 29 | OPT_DEFS += -DBOOTMAGIC_ENABLE | ||
| 30 | endif | ||
| 31 | |||
| 32 | ifdef MOUSEKEY_ENABLE | ||
| 33 | OBJECTS += $(OBJDIR)/$(COMMON_DIR)/mousekey.o | ||
| 34 | OPT_DEFS += -DMOUSEKEY_ENABLE | ||
| 35 | OPT_DEFS += -DMOUSE_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | ifdef EXTRAKEY_ENABLE | ||
| 39 | $(error Not Supported) | ||
| 40 | OPT_DEFS += -DEXTRAKEY_ENABLE | ||
| 41 | endif | ||
| 42 | |||
| 43 | ifdef CONSOLE_ENABLE | ||
| 44 | $(error Not Supported) | ||
| 45 | OPT_DEFS += -DCONSOLE_ENABLE | ||
| 46 | else | ||
| 47 | OPT_DEFS += -DNO_PRINT | ||
| 48 | OPT_DEFS += -DNO_DEBUG | ||
| 49 | endif | ||
| 50 | |||
| 51 | ifdef COMMAND_ENABLE | ||
| 52 | $(error Not Supported) | ||
| 53 | SRC += $(COMMON_DIR)/command.c | ||
| 54 | OPT_DEFS += -DCOMMAND_ENABLE | ||
| 55 | endif | ||
| 56 | |||
| 57 | ifdef NKRO_ENABLE | ||
| 58 | $(error Not Supported) | ||
| 59 | OPT_DEFS += -DNKRO_ENABLE | ||
| 60 | endif | ||
| 61 | |||
| 62 | ifdef SLEEP_LED_ENABLE | ||
| 63 | $(error Not Supported) | ||
| 64 | SRC += $(COMMON_DIR)/sleep_led.c | ||
| 65 | OPT_DEFS += -DSLEEP_LED_ENABLE | ||
| 66 | OPT_DEFS += -DNO_SUSPEND_POWER_DOWN | ||
| 67 | endif | ||
| 68 | |||
| 69 | ifdef BACKLIGHT_ENABLE | ||
| 70 | $(error Not Supported) | ||
| 71 | SRC += $(COMMON_DIR)/backlight.c | ||
| 72 | OPT_DEFS += -DBACKLIGHT_ENABLE | ||
| 73 | endif | ||
| 74 | |||
| 75 | ifdef KEYMAP_SECTION_ENABLE | ||
| 76 | $(error Not Supported) | ||
| 77 | OPT_DEFS += -DKEYMAP_SECTION_ENABLE | ||
| 78 | EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x | ||
| 79 | endif | ||
