2
0

rules.mk 693 B

12345678910111213141516171819202122232425262728293031323334
  1. SRC += drashna.c secrets.c rgb_stuff.c
  2. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  3. SRC += tap_dances.c
  4. endif
  5. EXTRAFLAGS += -flto
  6. ifeq ($(strip $(NO_SECRETS)), yes)
  7. OPT_DEFS += -DNO_SECRETS
  8. endif
  9. ifdef RGBLIGHT_ENABLE
  10. ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
  11. OPT_DEFS += -DINDICATOR_LIGHTS
  12. endif
  13. ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
  14. OPT_DEFS += -DRGBLIGHT_TWINKLE
  15. endif
  16. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  17. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  18. endif
  19. endif
  20. ifeq ($(strip $(MACROS_ENABLED)), yes)
  21. OPT_DEFS += -DMACROS_ENABLED
  22. endif
  23. ifdef CONSOLE_ENABLE
  24. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  25. OPT_DEFS += -DKEYLOGGER_ENABLE
  26. endif
  27. endif