rules.mk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. SRC += drashna.c \
  2. process_records.c
  3. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  4. SRC += secrets.c
  5. endif
  6. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  7. SRC += tap_dances.c
  8. endif
  9. ifeq ($(PLATFORM),AVR)
  10. EXTRAFLAGS += -flto
  11. endif
  12. ifeq ($(strip $(NO_SECRETS)), yes)
  13. OPT_DEFS += -DNO_SECRETS
  14. endif
  15. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  16. SRC += rgb_stuff.c
  17. ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
  18. OPT_DEFS += -DINDICATOR_LIGHTS
  19. endif
  20. ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
  21. OPT_DEFS += -DRGBLIGHT_TWINKLE
  22. endif
  23. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  24. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  25. endif
  26. ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
  27. OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
  28. endif
  29. endif
  30. ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
  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