rules.mk 723 B

1234567891011121314151617181920212223242526
  1. # none of my keyboards need LTO and it screws up I2C on my LSVI:
  2. EXTRAFLAGS:=$(filter-out -flto,$(EXTRAFLAGS))
  3. # turning off backlighting and audio for the split keebs
  4. ifneq (,$(findstring lets_split,$(KEYBOARD)))
  5. BACKLIGHT_ENABLE = no
  6. BACKLIGHT_BREATHING = no
  7. AUDIO_ENABLE = no
  8. endif
  9. ifneq (,$(findstring vitamins_included,$(KEYBOARD)))
  10. BACKLIGHT_ENABLE = no
  11. BACKLIGHT_BREATHING = no
  12. AUDIO_ENABLE = no
  13. endif
  14. # both my plancks use audio but only the rev4 has backlighting
  15. ifneq (,$(findstring planck,$(KEYBOARD)))
  16. ifneq (,$(findstring rev4,$(KEYBOARD)))
  17. BACKLIGHT_ENABLE = yes
  18. BACKLIGHT_BREATHING = no
  19. else
  20. BACKLIGHT_ENABLE = no
  21. BACKLIGHT_BREATHING = no
  22. endif
  23. AUDIO_ENABLE = yes
  24. endif