rules.mk 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Build Options
  2. # change to "no" to disable the options, or define them in the Makefile in
  3. # the appropriate keymap folder that will get included automatically
  4. #
  5. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  6. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  7. EXTRAKEY_ENABLE = no # Audio control and System control(+450)
  8. CONSOLE_ENABLE = no # Console for debug(+400)
  9. COMMAND_ENABLE = no # Commands for debug and configuration
  10. NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  11. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  12. MIDI_ENABLE = no # MIDI controls
  13. AUDIO_ENABLE = no # Audio output on port C6
  14. UNICODE_ENABLE = no # Unicode
  15. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  16. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
  17. SWAP_HANDS_ENABLE = no # Enable one-hand typing
  18. define HELIX_CUSTOMISE_MSG
  19. $(info Helix customize)
  20. $(info - OLED_ENABLE=$(OLED_ENABLE))
  21. $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
  22. $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
  23. $(info - LED_ANIMATION=$(LED_ANIMATIONS))
  24. endef
  25. # Helix keyboard customize
  26. # you can edit follows 6 Variables
  27. # jp: 以下の6つの変数を必要に応じて編集します。
  28. HELIX_ROWS = 5 # Helix Rows is 4 or 5
  29. OLED_ENABLE = no # OLED_ENABLE
  30. LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
  31. LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
  32. LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
  33. LED_ANIMATIONS = yes # LED animations
  34. #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
  35. #### Do not enable these with audio at the same time.
  36. # Uncomment these for checking
  37. # jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
  38. # $(eval $(call HELIX_CUSTOMISE_MSG))
  39. # $(info )
  40. ifneq ($(strip $(HELIX_ROWS)), 4)
  41. ifneq ($(strip $(HELIX_ROWS)), 5)
  42. $(error HELIX_ROWS = $(strip $(HELIX_ROWS)) is unexpected value)
  43. endif
  44. endif
  45. OPT_DEFS += -DHELIX_ROWS=$(strip $(HELIX_ROWS))
  46. ifeq ($(strip $(LED_BACK_ENABLE)), yes)
  47. RGBLIGHT_ENABLE = yes
  48. OPT_DEFS += -DRGBLED_BACK
  49. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  50. $(eval $(call HELIX_CUSTOMISE_MSG))
  51. $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
  52. endif
  53. else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  54. RGBLIGHT_ENABLE = yes
  55. else
  56. RGBLIGHT_ENABLE = no
  57. endif
  58. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  59. OPT_DEFS += -DRGBLIGHT_ANIMATIONS
  60. endif
  61. ifeq ($(strip $(OLED_ENABLE)), yes)
  62. OPT_DEFS += -DOLED_ENABLE
  63. endif
  64. ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
  65. OPT_DEFS += -DLOCAL_GLCDFONT
  66. endif
  67. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  68. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  69. ifndef QUANTUM_DIR
  70. include ../../../../Makefile
  71. endif
  72. # Uncomment these for debugging
  73. # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
  74. # $(info -- OPT_DEFS=$(OPT_DEFS))
  75. # $(info )