rules.mk 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 = yes # 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 = yes # Audio output on port B5
  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. $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
  25. endef
  26. # Helix keyboard customize
  27. # you can edit follows 6 Variables
  28. # jp: 以下の6つの変数を必要に応じて編集します。
  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. IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  35. #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
  36. #### Do not enable these with audio at the same time.
  37. ### Helix keyboard 'default' keymap: convenient command line option
  38. ## make HELIX=<options> helix:defualt
  39. ## option= oled | back | under | na | ios
  40. ## ex.
  41. ## make HELIX=oled helix:defualt
  42. ## make HELIX=oled,back helix:defualt
  43. ## make HELIX=oled,under helix:defualt
  44. ## make HELIX=oled,back,na helix:defualt
  45. ## make HELIX=oled,back,ios helix:defualt
  46. ##
  47. ifneq ($(strip $(HELIX)),)
  48. ifeq ($(findstring oled,$(HELIX)), oled)
  49. OLED_ENABLE = yes
  50. endif
  51. ifeq ($(findstring back,$(HELIX)), back)
  52. LED_BACK_ENABLE = yes
  53. else ifeq ($(findstring under,$(HELIX)), under)
  54. LED_UNDERGLOW_ENABLE = yes
  55. endif
  56. ifeq ($(findstring na,$(HELIX)), na)
  57. LED_ANIMATIONS = no
  58. endif
  59. ifeq ($(findstring ios,$(HELIX)), ios)
  60. IOS_DEVICE_ENABLE = yes
  61. endif
  62. $(eval $(call HELIX_CUSTOMISE_MSG))
  63. $(info )
  64. endif
  65. # Uncomment these for checking
  66. # jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
  67. # $(eval $(call HELIX_CUSTOMISE_MSG))
  68. # $(info )
  69. ifeq ($(strip $(LED_BACK_ENABLE)), yes)
  70. RGBLIGHT_ENABLE = yes
  71. OPT_DEFS += -DRGBLED_BACK
  72. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  73. $(eval $(call HELIX_CUSTOMISE_MSG))
  74. $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
  75. endif
  76. else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  77. RGBLIGHT_ENABLE = yes
  78. else
  79. RGBLIGHT_ENABLE = no
  80. endif
  81. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  82. OPT_DEFS += -DIOS_DEVICE_ENABLE
  83. endif
  84. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  85. OPT_DEFS += -DRGBLIGHT_ANIMATIONS
  86. endif
  87. ifeq ($(strip $(OLED_ENABLE)), yes)
  88. OPT_DEFS += -DOLED_ENABLE
  89. endif
  90. ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
  91. OPT_DEFS += -DLOCAL_GLCDFONT
  92. endif
  93. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  94. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  95. ifndef QUANTUM_DIR
  96. include ../../../../Makefile
  97. endif
  98. # Uncomment these for debugging
  99. # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
  100. # $(info -- OPT_DEFS=$(OPT_DEFS))
  101. # $(info )