rules.mk 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #This enables Link Time Optimization.This can save a good chunk of space(several KB for me), but the macro and function... functions cause it to error out.
  2. LTO_ENABLE = yes
  3. #Build Options
  4. #change to "no" to disable the options, or define them in the Makefile in
  5. #the appropriate keymap folder that will get included automatically
  6. #
  7. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  8. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  9. # DYNAMIC_MACRO_ENABLE = yes
  10. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  11. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
  12. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  13. CONSOLE_ENABLE = no # Console for debug(+400)
  14. COMMAND_ENABLE = no # Commands for debug and configuration
  15. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  16. MIDI_ENABLE = no # MIDI controls
  17. AUDIO_ENABLE = no # Audio output on port C6
  18. UNICODE_ENABLE = no # Unicode
  19. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  20. SWAP_HANDS_ENABLE = no # Enable one-hand typing
  21. RGB_MATRIX_ENABLE = yes
  22. #Do not enable SLEEP_LED_ENABLE.it uses the same timer as BACKLIGHT_ENABLE
  23. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  24. BOOTLOADER = qmk-dfu
  25. OLED_DRIVER_ENABLE = yes
  26. ifeq ($(strip $(THEME)), godspeed)
  27. OPT_DEFS += -DTHEME_GODSPEED
  28. endif
  29. ifeq ($(strip $(THEME)), pulse)
  30. OPT_DEFS += -DTHEME_PULSE
  31. endif
  32. ifeq ($(strip $(THEME)), laser)
  33. OPT_DEFS += -DTHEME_LASER
  34. endif