rules.mk 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 $(LEADER_ENABLE)), yes)
  14. SRC += leader.c
  15. endif
  16. ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
  17. SRC += secrets.c
  18. endif
  19. ifeq ($(strip $(NO_SECRETS)), yes)
  20. OPT_DEFS += -DNO_SECRETS
  21. endif
  22. ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
  23. SRC += unicode.c
  24. endif
  25. ifeq ($(strip $(MACROS_ENABLED)), yes)
  26. OPT_DEFS += -DMACROS_ENABLED
  27. endif
  28. ifdef CONSOLE_ENABLE
  29. ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
  30. OPT_DEFS += -DKEYLOGGER_ENABLE
  31. endif
  32. endif
  33. ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
  34. OPT_DEFS += -DMAKE_BOOTLOADER
  35. endif