makefile 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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/ws2812b/subdir.mk
  10. -include components/tools/subdir.mk
  11. -include components/nfc/subdir.mk
  12. -include components/led/subdir.mk
  13. -include components/electlock/subdir.mk
  14. -include components/config/subdir.mk
  15. -include components/charge/subdir.mk
  16. -include components/can/subdir.mk
  17. -include components/action/subdir.mk
  18. -include User/app_drv_fifo/subdir.mk
  19. -include User/subdir.mk
  20. -include Startup/subdir.mk
  21. -include SRC/Peripheral/src/subdir.mk
  22. -include SRC/Debug/subdir.mk
  23. -include SRC/Core/subdir.mk
  24. -include Profile/subdir.mk
  25. -include LIB/subdir.mk
  26. -include HAL/subdir.mk
  27. -include subdir.mk
  28. -include objects.mk
  29. ifneq ($(MAKECMDGOALS),clean)
  30. ifneq ($(strip $(S_DEPS)),)
  31. -include $(S_DEPS)
  32. endif
  33. ifneq ($(strip $(S_UPPER_DEPS)),)
  34. -include $(S_UPPER_DEPS)
  35. endif
  36. ifneq ($(strip $(ASM_DEPS)),)
  37. -include $(ASM_DEPS)
  38. endif
  39. ifneq ($(strip $(ASM_UPPER_DEPS)),)
  40. -include $(ASM_UPPER_DEPS)
  41. endif
  42. ifneq ($(strip $(C_DEPS)),)
  43. -include $(C_DEPS)
  44. endif
  45. endif
  46. -include ../makefile.defs
  47. # Add inputs and outputs from these tool invocations to the build variables
  48. SECONDARY_FLASH += \
  49. mainboard.bin \
  50. mainboard.hex \
  51. SECONDARY_LIST += \
  52. mainboard.lst \
  53. SECONDARY_SIZE += \
  54. mainboard.siz \
  55. # All Target
  56. all:
  57. $(MAKE) --no-print-directory main-build
  58. $(MAKE) --no-print-directory post-build
  59. main-build: mainboard.elf secondary-outputs
  60. post-build:
  61. riscv-none-embed-objcopy -O ihex "mainboard.elf" "mainboard.hex" && riscv-none-embed-objcopy -O binary "mainboard.elf" "mainboard.bin"
  62. # Tool invocations
  63. mainboard.elf: $(OBJS) $(USER_OBJS)
  64. @ 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
  65. mainboard.bin: mainboard.elf
  66. @ riscv-none-embed-objcopy -O binary "mainboard.elf" "mainboard.bin"
  67. mainboard.hex: mainboard.elf
  68. @ riscv-none-embed-objcopy -O ihex "mainboard.elf" "mainboard.hex"
  69. mainboard.lst: mainboard.elf
  70. @ riscv-none-embed-objdump --source --all-headers --demangle -M xw --line-numbers --wide "mainboard.elf" > "mainboard.lst"
  71. mainboard.siz: mainboard.elf
  72. riscv-none-embed-size --format=berkeley "mainboard.elf"
  73. # Other Targets
  74. clean:
  75. -$(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
  76. secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
  77. .PHONY: all clean dependents
  78. -include ../makefile.targets