rules.mk 953 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. SRC += kuchosauronad0.c \
  2. process_records.c
  3. LTO_ENABLE = yes
  4. SPACE_CADET_ENABLE = no
  5. ifneq ($(strip $(RGBLIGHT_ENABLE)),yes )
  6. SRC += rgblight_user.c
  7. endif
  8. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  9. SRC += tap_dances.c
  10. endif
  11. ifeq ($(strip $(ENCODER_ENABLE)), yes)
  12. SRC += encoder.c
  13. endif
  14. ifeq ($(strip $(COMBO_ENABLE)), yes)
  15. SRC += combo.c
  16. endif
  17. ifeq ($(strip $(LEADER_ENABLE)), yes)
  18. SRC += leader.c
  19. endif
  20. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  21. SRC += secrets.c
  22. endif
  23. ifeq ($(strip $(NO_SECRETS)), yes)
  24. OPT_DEFS += -DNO_SECRETS
  25. endif
  26. ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
  27. SRC += unicode.c
  28. endif
  29. ifeq ($(strip $(MACROS_ENABLED)), yes)
  30. OPT_DEFS += -DMACROS_ENABLED
  31. endif
  32. ifdef CONSOLE_ENABLE
  33. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  34. OPT_DEFS += -DKEYLOGGER_ENABLE
  35. endif
  36. endif
  37. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  38. OPT_DEFS += -DMAKE_BOOTLOADER
  39. endif