You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.7 KiB

  1. SRC += curry.c \
  2. process_records.c
  3. # Common flags
  4. SPACE_CADET_ENABLE = no
  5. LTO_ENABLE = yes
  6. EXTRAKEY_ENABLE = yes
  7. UNICODE_ENABLE = yes
  8. NKRO_ENABLE = yes
  9. EXTRAKEY_ENABLE = yes
  10. LEADER_ENABLE = yes
  11. TAP_DANCE_ENABLE = no
  12. ifneq ($(strip $(NO_SECRETS)), yes)
  13. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  14. SRC += secrets.c
  15. endif
  16. ifeq ($(strip $(NO_SECRETS)), lite)
  17. OPT_DEFS += -DNO_SECRETS
  18. endif
  19. endif
  20. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  21. SRC += tap_dances.c
  22. endif
  23. ifeq ($(strip $(OLED_ENABLE)), yes)
  24. SRC += oled.c
  25. endif
  26. ifeq ($(strip $(LEADER_ENABLE)), yes)
  27. SRC += leader.c
  28. endif
  29. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  30. SRC += rgb_lighting_user.c
  31. ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
  32. OPT_DEFS += -DINDICATOR_LIGHTS
  33. endif
  34. ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
  35. OPT_DEFS += -DRGBLIGHT_TWINKLE
  36. endif
  37. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  38. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  39. endif
  40. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  41. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  42. endif
  43. endif
  44. RGB_MATRIX_ENABLE ?= no
  45. ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
  46. SRC += rgb_matrix_user.c
  47. endif
  48. ifdef CONSOLE_ENABLE
  49. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  50. OPT_DEFS += -DKEYLOGGER_ENABLE
  51. endif
  52. endif
  53. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  54. OPT_DEFS += -DMAKE_BOOTLOADER
  55. endif
  56. # At least until build.mk or the like drops, this is here to prevent
  57. # VUSB boards from enabling NKRO, as they do not support it. Ideally
  58. # this should be handled per keyboard, but until that happens ...
  59. ifeq ($(strip $(PROTOCOL)), VUSB)
  60. NKRO_ENABLE = no
  61. endif