rules.mk 874 B

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