Keyboard firmwares for Atmel AVR and Cortex-M
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.

common.mk 1.8KB

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