rules.mk 941 B

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