rules.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. SRC += drashna.c \
  2. process_records.c
  3. ifneq ($(PLATFORM),CHIBIOS)
  4. LTO_ENABLE = yes
  5. endif
  6. SPACE_CADET_ENABLE = no
  7. ifneq ($(strip $(NO_SECRETS)), yes)
  8. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  9. SRC += secrets.c
  10. endif
  11. ifeq ($(strip $(NO_SECRETS)), lite)
  12. OPT_DEFS += -DNO_SECRETS
  13. endif
  14. endif
  15. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  16. SRC += tap_dances.c
  17. endif
  18. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  19. SRC += rgb_stuff.c
  20. ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
  21. OPT_DEFS += -DINDICATOR_LIGHTS
  22. endif
  23. ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
  24. OPT_DEFS += -DRGBLIGHT_TWINKLE
  25. endif
  26. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  27. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  28. endif
  29. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  30. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  31. endif
  32. endif
  33. RGB_MATRIX_ENABLE ?= no
  34. ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
  35. SRC += rgb_stuff.c
  36. endif
  37. ifdef CONSOLE_ENABLE
  38. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  39. OPT_DEFS += -DKEYLOGGER_ENABLE
  40. endif
  41. endif
  42. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  43. OPT_DEFS += -DMAKE_BOOTLOADER
  44. endif
  45. # At least until build.mk or the like drops, this is here to prevent
  46. # VUSB boards from enabling NKRO, as they do not support it. Ideally
  47. # this should be handled per keyboard, but until that happens ...
  48. ifeq ($(strip $(PROTOCOL)), VUSB)
  49. NKRO_ENABLE = no
  50. endif