rules.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. RGB_MATRIX_ENABLE ?= no
  29. ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
  30. SRC += rgb_stuff.c
  31. endif
  32. ifeq ($(strip $(MACROS_ENABLED)), yes)
  33. OPT_DEFS += -DMACROS_ENABLED
  34. endif
  35. ifdef CONSOLE_ENABLE
  36. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  37. OPT_DEFS += -DKEYLOGGER_ENABLE
  38. endif
  39. endif
  40. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  41. OPT_DEFS += -DMAKE_BOOTLOADER
  42. endif