2
0

rules.mk 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. TAP_DANCE_ENABLE = yes
  19. # If your custom treadstone48 pcb, you can rewrite to yes.
  20. OLED_ENABLE = no # OLED_ENABLE
  21. LED_UNDERGLOW_ENABLE = yes # LED underglow (Enable WS2812 RGB underlight.)
  22. LED_ANIMATIONS = yes # LED animations
  23. # Other selectable option
  24. IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  25. LOCAL_GLCDFONT = no # use each keymaps "font.h" insted of "common/glcdfont.c"
  26. # RHYMESTONE_RIGHTHAND = no # If connect right hand side of the Rhymestone, set to yes.
  27. ANGELINA_KEYMAP = no # If Alfa verstion use set to yes.
  28. ifeq ($(strip $(OLED_ENABLE)), yes)
  29. OPT_DEFS += -DOLED_ENABLE
  30. endif
  31. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  32. RGBLIGHT_ENABLE = yes
  33. else
  34. RGBLIGHT_ENABLE = no
  35. endif
  36. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  37. # OPT_DEFS += -DRGBLIGHT_ANIMATIONS
  38. OPT_DEFS += -DLED_ANIMATIONS
  39. endif
  40. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  41. OPT_DEFS += -DIOS_DEVICE_ENABLE
  42. endif
  43. ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
  44. OPT_DEFS += -DLOCAL_GLCDFONT
  45. endif
  46. # ifeq ($(strip $(RHYMESTONE_RIGHTHAND)), yes)
  47. # OPT_DEFS += -DRHYMESTONE_RIGHTHAND
  48. # endif
  49. ifeq ($(strip $(ANGELINA_KEYMAP)), yes)
  50. OPT_DEFS += -DANGELINA_KEYMAP
  51. endif
  52. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  53. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  54. # If you want to change the display of OLED, you need to change here
  55. SRC += ./common/oled_helper.c \