rules.mk 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 = yes # Console for debug(+400)
  9. COMMAND_ENABLE = yes # 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. RGBLIGHT_ENABLE = no # Enable global lighting effects. Do not enable with RGB Matrix
  12. RGBLIGHT_ANIMATIONS = no # LED animations
  13. LED_MIRRORED = no # Mirror LEDs across halves (enable DIP 1 on slave, and DIP 2 and 3 on master)
  14. RGB_MATRIX_ENABLE = WS2812 # Enable per-key coordinate based RGB effects. Do not enable with RGBlight (+8500)
  15. RGB_MATRIX_KEYPRESSES = no # Enable reactive per-key effects. Can be very laggy (+1500)
  16. RGBLIGHT_FULL_POWER = no # Allow maximum RGB brightness. Otherwise, limited to a safe level for a normal USB-A port
  17. UNICODE_ENABLE = no # Unicode
  18. SWAP_HANDS_ENABLE = no # Enable one-hand typing
  19. ENCODER_ENABLE_CUSTOM = yes # Enable rotary encoder (+90)
  20. OLED_ENABLE = no # OLED_ENABLE (+5000)
  21. IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
  22. # Do not edit past here
  23. ifeq ($(strip $(OLED_ENABLE)), yes)
  24. OPT_DEFS += -DOLED_ENABLE
  25. endif
  26. ifeq ($(strip $(ENCODER_ENABLE_CUSTOM)), yes)
  27. OPT_DEFS += -DENCODER_ENABLE_CUSTOM
  28. SRC += common/knob_v2.c
  29. endif
  30. ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
  31. OPT_DEFS += -DIOS_DEVICE_ENABLE
  32. else ifeq ($(strip $(RGBLIGHT_FULL_POWER)), yes)
  33. OPT_DEFS += -DRGBLIGHT_FULL_POWER
  34. endif
  35. ifeq ($(strip $(RGB_MATRIX_KEYPRESSES)), yes)
  36. OPT_DEFS += -DRGB_MATRIX_KEYPRESSES
  37. endif
  38. ifeq ($(strip $(LED_MIRRORED)), yes)
  39. OPT_DEFS += -DLED_MIRRORED
  40. endif