makefile 3.4 KB

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