rules.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. SRC += drashna.c \
  2. process_records.c
  3. LINK_TIME_OPTIMIZATION_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