rules.mk 784 B

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