rules.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. SRC += drashna.c \
  2. process_records.c
  3. ifneq ($(PLATFORM),CHIBIOS)
  4. LTO_ENABLE = yes
  5. endif
  6. SPACE_CADET_ENABLE = no
  7. GRAVE_ESC_ENABLE = no
  8. ifneq ($(strip $(NO_SECRETS)), yes)
  9. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  10. SRC += secrets.c
  11. endif
  12. ifeq ($(strip $(NO_SECRETS)), lite)
  13. OPT_DEFS += -DNO_SECRETS
  14. endif
  15. endif
  16. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  17. SRC += tap_dances.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_matrix_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
  52. ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes)
  53. SRC += oled_stuff.c
  54. endif