rules.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. SRC += curry.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 $(OLED_DRIVER_ENABLE)), yes)
  17. SRC += oled.c
  18. endif
  19. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  20. SRC += rgb_stuff.c
  21. ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
  22. OPT_DEFS += -DINDICATOR_LIGHTS
  23. endif
  24. ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
  25. OPT_DEFS += -DRGBLIGHT_TWINKLE
  26. endif
  27. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  28. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  29. endif
  30. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  31. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  32. endif
  33. endif
  34. RGB_MATRIX_ENABLE ?= no
  35. ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
  36. SRC += rgb_stuff.c
  37. endif
  38. ifdef CONSOLE_ENABLE
  39. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  40. OPT_DEFS += -DKEYLOGGER_ENABLE
  41. endif
  42. endif
  43. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  44. OPT_DEFS += -DMAKE_BOOTLOADER
  45. endif
  46. # At least until build.mk or the like drops, this is here to prevent
  47. # VUSB boards from enabling NKRO, as they do not support it. Ideally
  48. # this should be handled per keyboard, but until that happens ...
  49. ifeq ($(strip $(PROTOCOL)), VUSB)
  50. NKRO_ENABLE = no
  51. endif