makefile 3.1 KB

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