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.

11 vuotta sitten
11 vuotta sitten
10 vuotta sitten
13 vuotta sitten
13 vuotta sitten
10 vuotta sitten
13 vuotta sitten
13 vuotta sitten
10 vuotta sitten
11 vuotta sitten
10 vuotta sitten
10 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. COMMON_DIR = common
  2. SRC += $(COMMON_DIR)/host.c \
  3. $(COMMON_DIR)/keyboard.c \
  4. $(COMMON_DIR)/action.c \
  5. $(COMMON_DIR)/action_tapping.c \
  6. $(COMMON_DIR)/action_macro.c \
  7. $(COMMON_DIR)/action_layer.c \
  8. $(COMMON_DIR)/action_util.c \
  9. $(COMMON_DIR)/keymap.c \
  10. $(COMMON_DIR)/print.c \
  11. $(COMMON_DIR)/debug.c \
  12. $(COMMON_DIR)/util.c \
  13. $(COMMON_DIR)/avr/suspend.c \
  14. $(COMMON_DIR)/avr/xprintf.S \
  15. $(COMMON_DIR)/avr/timer.c \
  16. $(COMMON_DIR)/avr/bootloader.c
  17. # Option modules
  18. ifdef BOOTMAGIC_ENABLE
  19. SRC += $(COMMON_DIR)/bootmagic.c
  20. SRC += $(COMMON_DIR)/avr/eeconfig.c
  21. OPT_DEFS += -DBOOTMAGIC_ENABLE
  22. endif
  23. ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
  24. SRC += $(COMMON_DIR)/mousekey.c
  25. OPT_DEFS += -DMOUSEKEY_ENABLE
  26. OPT_DEFS += -DMOUSE_ENABLE
  27. endif
  28. ifdef EXTRAKEY_ENABLE
  29. OPT_DEFS += -DEXTRAKEY_ENABLE
  30. endif
  31. ifdef CONSOLE_ENABLE
  32. OPT_DEFS += -DCONSOLE_ENABLE
  33. else
  34. OPT_DEFS += -DNO_PRINT
  35. OPT_DEFS += -DNO_DEBUG
  36. endif
  37. ifdef COMMAND_ENABLE
  38. SRC += $(COMMON_DIR)/command.c
  39. OPT_DEFS += -DCOMMAND_ENABLE
  40. endif
  41. ifdef NKRO_ENABLE
  42. OPT_DEFS += -DNKRO_ENABLE
  43. endif
  44. ifdef USB_6KRO_ENABLE
  45. OPT_DEFS += -DUSB_6KRO_ENABLE
  46. endif
  47. ifdef SLEEP_LED_ENABLE
  48. SRC += $(COMMON_DIR)/sleep_led.c
  49. OPT_DEFS += -DSLEEP_LED_ENABLE
  50. OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
  51. endif
  52. ifdef SOFTPWM_LED_ENABLE
  53. SRC += $(COMMON_DIR)/softpwm_led.c
  54. OPT_DEFS += -DSOFTPWM_LED_ENABLE
  55. ifdef FADING_LED_ENABLE
  56. OPT_DEFS += -DFADING_LED_ENABLE
  57. endif
  58. ifdef BREATHING_LED_ENABLE
  59. OPT_DEFS += -DBREATHING_LED_ENABLE
  60. endif
  61. else
  62. ifdef BREATHING_LED_ENABLE
  63. SRC += $(COMMON_DIR)/breathing_led.c
  64. OPT_DEFS += -DBREATHING_LED_ENABLE
  65. endif
  66. endif
  67. ifdef BACKLIGHT_ENABLE
  68. SRC += $(COMMON_DIR)/backlight.c
  69. OPT_DEFS += -DBACKLIGHT_ENABLE
  70. endif
  71. ifdef LEDMAP_ENABLE
  72. SRC += $(COMMON_DIR)/ledmap.c
  73. OPT_DEFS += -DLEDMAP_ENABLE
  74. ifdef LEDMAP_IN_EEPROM_ENABLE
  75. SRC += $(COMMON_DIR)/ledmap_in_eeprom.c
  76. OPT_DEFS += -DLEDMAP_IN_EEPROM_ENABLE
  77. endif
  78. endif
  79. ifdef KEYMAP_SECTION_ENABLE
  80. OPT_DEFS += -DKEYMAP_SECTION_ENABLE
  81. EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x
  82. endif
  83. ifdef KEYMAP_IN_EEPROM_ENABLE
  84. SRC += $(COMMON_DIR)/keymap_in_eeprom.c
  85. OPT_DEFS += -DKEYMAP_IN_EEPROM_ENABLE
  86. endif
  87. ifdef LED_MATRIX_ENABLE
  88. SRC += $(COMMON_DIR)/led_matrix.c
  89. OPT_DEFS += -DLED_MATRIX_ENABLE
  90. endif
  91. # Version string
  92. OPT_DEFS += -DVERSION=$(shell (git describe --always --dirty || echo 'unknown') 2> /dev/null)
  93. # Search Path
  94. VPATH += $(TOP_DIR)/common