rules.mk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. SRC += drashna.c \
  2. process_records.c
  3. LINK_TIME_OPTIMIZATION_ENABLE = yes
  4. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  5. SRC += secrets.c
  6. endif
  7. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  8. SRC += tap_dances.c
  9. endif
  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. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  25. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  26. endif
  27. endif
  28. ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
  29. SRC += rgb_stuff.c
  30. endif
  31. ifeq ($(strip $(MACROS_ENABLED)), yes)
  32. OPT_DEFS += -DMACROS_ENABLED
  33. endif
  34. ifdef CONSOLE_ENABLE
  35. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  36. OPT_DEFS += -DKEYLOGGER_ENABLE
  37. endif
  38. endif
  39. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  40. OPT_DEFS += -DMAKE_BOOTLOADER
  41. endif