rules.mk 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = no # Console for debug(+400)
  9. COMMAND_ENABLE = no # Commands for debug and configuration
  10. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  11. BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
  12. MIDI_ENABLE = no # MIDI controls
  13. AUDIO_ENABLE = yes # 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 = yes # Enable RGB underlight
  17. RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812
  18. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  19. TAP_DANCE_ENABLE = no
  20. ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
  21. WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
  22. ifndef QUANTUM_DIR
  23. include ../../../../Makefile
  24. endif
  25. ifeq ($(strip $(ISSI_ENABLE)), yes)
  26. TMK_COMMON_DEFS += -DISSI_ENABLE
  27. endif
  28. ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
  29. TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
  30. endif
  31. # Override the LFK87 hardware version.
  32. #
  33. # A - Green PCB. at90usb1286 Only 3 exist
  34. # B - We don't talk about RevB
  35. # C-D - Black PCB. at90usb646 First public release
  36. #
  37. # LFK_REV = C
  38. # ifeq ($(LFK_REV), A)
  39. # MCU = at90usb1286
  40. # OPT_DEFS += -DBOOTLOADER_SIZE=8192
  41. # else
  42. # MCU = at90usb646
  43. # OPT_DEFS += -DBOOTLOADER_SIZE=4096
  44. # endif
  45. # OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)