rules.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. TAP_DANCE_ENABLE = yes
  2. # If your custom treadstone48 pcb, you can rewrite to yes.
  3. OLED_ENABLE = no # OLED_ENABLE
  4. LED_UNDERGLOW_ENABLE = yes # LED underglow (Enable WS2812 RGB underlight.)
  5. LED_ANIMATIONS = yes # LED animations
  6. # Other selectable option
  7. IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
  8. LOCAL_GLCDFONT = no # use each keymaps "font.h" insted of "common/glcdfont.c"
  9. # RHYMESTONE_RIGHTHAND = no # If connect right hand side of the Rhymestone, set to yes.
  10. ANGELINA_KEYMAP = no # If Alfa verstion use set to yes.
  11. ifeq ($(strip $(OLED_ENABLE)), yes)
  12. OPT_DEFS += -DOLED_ENABLE
  13. endif
  14. ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
  15. RGBLIGHT_ENABLE = yes
  16. else
  17. RGBLIGHT_ENABLE = no
  18. endif
  19. ifeq ($(strip $(LED_ANIMATIONS)), yes)
  20. # OPT_DEFS += -DRGBLIGHT_ANIMATIONS
  21. OPT_DEFS += -DLED_ANIMATIONS
  22. endif
  23. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  24. OPT_DEFS += -DIOS_DEVICE_ENABLE
  25. endif
  26. ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
  27. OPT_DEFS += -DLOCAL_GLCDFONT
  28. endif
  29. # ifeq ($(strip $(RHYMESTONE_RIGHTHAND)), yes)
  30. # OPT_DEFS += -DRHYMESTONE_RIGHTHAND
  31. # endif
  32. ifeq ($(strip $(ANGELINA_KEYMAP)), yes)
  33. OPT_DEFS += -DANGELINA_KEYMAP
  34. endif
  35. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  36. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  37. # If you want to change the display of OLED, you need to change here
  38. SRC += ./common/oled_helper.c \