makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ################################################################################
  2. # MRS Version: 2.2.0
  3. # Automatically-generated file. Do not edit!
  4. ################################################################################
  5. -include ../makefile.init
  6. RM := rm -rf
  7. # All of the sources participating in the build are defined here
  8. -include sources.mk
  9. -include components/tools/subdir.mk
  10. -include components/nfc/subdir.mk
  11. -include components/led/subdir.mk
  12. -include components/electlock/subdir.mk
  13. -include components/config/subdir.mk
  14. -include components/charge/subdir.mk
  15. -include components/can/subdir.mk
  16. -include components/action/subdir.mk
  17. -include User/app_drv_fifo/subdir.mk
  18. -include User/subdir.mk
  19. -include Startup/subdir.mk
  20. -include SRC/Peripheral/src/subdir.mk
  21. -include SRC/Debug/subdir.mk
  22. -include SRC/Core/subdir.mk
  23. -include Profile/subdir.mk
  24. -include LIB/subdir.mk
  25. -include HAL/subdir.mk
  26. -include subdir.mk
  27. -include objects.mk
  28. ifneq ($(MAKECMDGOALS),clean)
  29. ifneq ($(strip $(S_DEPS)),)
  30. -include $(S_DEPS)
  31. endif
  32. ifneq ($(strip $(S_UPPER_DEPS)),)
  33. -include $(S_UPPER_DEPS)
  34. endif
  35. ifneq ($(strip $(ASM_DEPS)),)
  36. -include $(ASM_DEPS)
  37. endif
  38. ifneq ($(strip $(ASM_UPPER_DEPS)),)
  39. -include $(ASM_UPPER_DEPS)
  40. endif
  41. ifneq ($(strip $(C_DEPS)),)
  42. -include $(C_DEPS)
  43. endif
  44. endif
  45. -include ../makefile.defs
  46. # Add inputs and outputs from these tool invocations to the build variables
  47. SECONDARY_FLASH += \
  48. mainboard.bin \
  49. mainboard.hex \
  50. SECONDARY_LIST += \
  51. mainboard.lst \
  52. SECONDARY_SIZE += \
  53. mainboard.siz \
  54. # All Target
  55. all:
  56. $(MAKE) --no-print-directory main-build
  57. $(MAKE) --no-print-directory post-build
  58. main-build: mainboard.elf secondary-outputs
  59. post-build:
  60. riscv-none-embed-objcopy -O ihex "mainboard.elf" "mainboard.hex" && riscv-none-embed-objcopy -O binary "mainboard.elf" "mainboard.bin"
  61. # Tool invocations
  62. mainboard.elf: $(OBJS) $(USER_OBJS)
  63. @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mno-save-restore -fmax-errors=20 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -g -T "d:/git_workspace/bozz/loto/bozz_loto_software/for_can/ISCS_KEY_BASE_CAN/mainboard/Ld/Link.ld" -nostartfiles -Xlinker --gc-sections -L"d:\git_workspace\bozz\loto\bozz_loto_software\for_can\ISCS_KEY_BASE_CAN\mainboard" -L"d:/git_workspace/bozz/loto/bozz_loto_software/for_can/ISCS_KEY_BASE_CAN/mainboard/components/Lib" -L"d:/git_workspace/bozz/loto/bozz_loto_software/for_can/ISCS_KEY_BASE_CAN/Library/LIB" -Xlinker --print-memory-usage -Xlinker --print-memory-usage -Wl,-Map,"mainboard.map" --specs=nano.specs -u _printf_float -u _scanf_float --specs=nosys.specs -o "mainboard.elf" $(OBJS) $(LIBS) -lIQmath_RV32
  64. mainboard.bin: mainboard.elf
  65. @ riscv-none-embed-objcopy -O binary "mainboard.elf" "mainboard.bin"
  66. mainboard.hex: mainboard.elf
  67. @ riscv-none-embed-objcopy -O ihex "mainboard.elf" "mainboard.hex"
  68. mainboard.lst: mainboard.elf
  69. @ riscv-none-embed-objdump --source --all-headers --demangle -M xw --line-numbers --wide "mainboard.elf" > "mainboard.lst"
  70. mainboard.siz: mainboard.elf
  71. riscv-none-embed-size --format=berkeley "mainboard.elf"
  72. # Other Targets
  73. clean:
  74. -$(RM) $(OBJS) $(EXPANDS) $(CALLGRAPH_DOT) $(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(S_DEPS)$(S_UPPER_DEPS)$(ASM_DEPS)$(ASM_UPPER_DEPS)$(C_DEPS) mainboard.elf
  75. secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
  76. .PHONY: all clean dependents
  77. -include ../makefile.targets