rules.mk 1.1 KB

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