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

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