rules.mk 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. SRC += drashna.c
  2. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  3. SRC += secrets.c
  4. endif
  5. ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
  6. SRC += tap_dances.c
  7. endif
  8. EXTRAFLAGS += -flto
  9. ifeq ($(strip $(NO_SECRETS)), yes)
  10. OPT_DEFS += -DNO_SECRETS
  11. endif
  12. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  13. SRC += rgb_stuff.c
  14. ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
  15. OPT_DEFS += -DINDICATOR_LIGHTS
  16. endif
  17. ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
  18. OPT_DEFS += -DRGBLIGHT_TWINKLE
  19. endif
  20. ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
  21. OPT_DEFS += -DRGBLIGHT_NOEEPROM
  22. endif
  23. endif
  24. ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
  25. SRC += rgb_stuff.c
  26. endif
  27. ifeq ($(strip $(MACROS_ENABLED)), yes)
  28. OPT_DEFS += -DMACROS_ENABLED
  29. endif
  30. ifdef CONSOLE_ENABLE
  31. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  32. OPT_DEFS += -DKEYLOGGER_ENABLE
  33. endif
  34. endif
  35. ifeq ($(strip $(UCIS_ENABLE)), yes)
  36. SRC += send_unicode.c
  37. endif
  38. ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
  39. SRC += send_unicode.c
  40. endif
  41. ifeq ($(strip $(UNICODE_ENABLE)), yes)
  42. SRC += send_unicode.c
  43. endif