You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

common.mk 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. INCLUDE_PATHS += \
  19. -I$(TMK_DIR)/common \
  20. -I$(TMK_DIR)/protocol
  21. CC_FLAGS += -include $(CONFIG_H)
  22. # Option modules
  23. ifdef BOOTMAGIC_ENABLE
  24. $(error Not Supported)
  25. OBJECTS += $(OBJDIR)/common/bootmagic.o
  26. OBJECTS += $(OBJDIR)/common/mbed/eeprom.o
  27. OPT_DEFS += -DBOOTMAGIC_ENABLE
  28. endif
  29. ifdef MOUSEKEY_ENABLE
  30. OBJECTS += $(OBJDIR)/common/mousekey.o
  31. OPT_DEFS += -DMOUSEKEY_ENABLE
  32. OPT_DEFS += -DMOUSE_ENABLE
  33. endif
  34. ifdef EXTRAKEY_ENABLE
  35. $(error Not Supported)
  36. OPT_DEFS += -DEXTRAKEY_ENABLE
  37. endif
  38. ifdef CONSOLE_ENABLE
  39. $(error Not Supported)
  40. OPT_DEFS += -DCONSOLE_ENABLE
  41. else
  42. OPT_DEFS += -DNO_PRINT
  43. OPT_DEFS += -DNO_DEBUG
  44. endif
  45. ifdef COMMAND_ENABLE
  46. $(error Not Supported)
  47. SRC += common/command.c
  48. OPT_DEFS += -DCOMMAND_ENABLE
  49. endif
  50. ifdef NKRO_ENABLE
  51. $(error Not Supported)
  52. OPT_DEFS += -DNKRO_ENABLE
  53. endif
  54. ifdef SLEEP_LED_ENABLE
  55. $(error Not Supported)
  56. SRC += common/mbed/sleep_led.c
  57. OPT_DEFS += -DSLEEP_LED_ENABLE
  58. OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
  59. endif
  60. ifdef BACKLIGHT_ENABLE
  61. $(error Not Supported)
  62. SRC += common/backlight.c
  63. OPT_DEFS += -DBACKLIGHT_ENABLE
  64. endif
  65. ifdef KEYMAP_SECTION_ENABLE
  66. $(error Not Supported)
  67. OPT_DEFS += -DKEYMAP_SECTION_ENABLE
  68. EXTRALDFLAGS = -Wl,-L$(TMK_DIR),-Tldscript_keymap_avr5.x
  69. endif