rules.mk 1.4 KB

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