rules.mk 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. MOUSEKEY_ENABLE = no # Mouse keys
  6. EXTRAKEY_ENABLE = yes # Audio control and System control
  7. CONSOLE_ENABLE = no # Console for debug
  8. COMMAND_ENABLE = no # Commands for debug and configuration
  9. NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  10. RGBLIGHT_ENABLE = no # Enable global lighting effects. Do not enable with RGB Matrix
  11. RGBLIGHT_ANIMATIONS = no # LED animations
  12. RGBLIGHT_SPLIT_ENABLE = no # Split RGBLight Support
  13. RGB_MATRIX_ENABLE = yes # Enable per-key coordinate based RGB effects. Do not enable with RGBlight
  14. RGB_MATRIX_DRIVER = WS2812
  15. RGB_MATRIX_KEYPRESSES = no # Enable reactive per-key effects.
  16. SPLIT_RGB_MATRIX_ENABLE = yes # For split RGB Matrix support
  17. RGBLIGHT_FULL_POWER = yes # Allow maximum RGB brightness. Otherwise, limited to a safe level for a normal USB-A port
  18. UNICODE_ENABLE = no # Unicode
  19. SWAP_HANDS_ENABLE = no # Enable one-hand typing
  20. ENCODER_ENABLE = no # Enable rotary encoder
  21. OLED_DRIVER_ENABLE = no # Enable the OLED Driver
  22. IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
  23. LTO_ENABLE = no # Enable optimizations to reduce firmware size. Also disables action macros and functions.
  24. # Do not edit past here
  25. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  26. OPT_DEFS += -DIOS_DEVICE_ENABLE
  27. else ifeq ($(strip $(RGBLIGHT_FULL_POWER)), yes)
  28. OPT_DEFS += -DRGBLIGHT_FULL_POWER
  29. endif
  30. ifeq ($(strip $(RGB_MATRIX_KEYPRESSES)), yes)
  31. OPT_DEFS += -DRGB_MATRIX_KEYPRESSES
  32. endif
  33. ifeq ($(strip $(RGBLIGHT_ANIMATIONS)), yes)
  34. OPT_DEFS += -DRGBLIGHT_ANIMATIONS
  35. endif
  36. ifeq ($(strip $(RGBLIGHT_SPLIT_ENABLE)), yes)
  37. OPT_DEFS += -DRGBLIGHT_SPLIT_ENABLE
  38. endif
  39. ifeq ($(strip $(SPLIT_RGB_MATRIX_ENABLE)), yes)
  40. OPT_DEFS += -DSPLIT_TRANSPORT_MIRROR
  41. endif