rules.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. ifeq ($(strip $(MACROS_ENABLED)), yes)
  34. OPT_DEFS += -DMACROS_ENABLED
  35. endif
  36. ifdef CONSOLE_ENABLE
  37. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  38. OPT_DEFS += -DKEYLOGGER_ENABLE
  39. endif
  40. endif
  41. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  42. OPT_DEFS += -DMAKE_BOOTLOADER
  43. endif