makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/user_uart/subdir.mk
  11. -include components/tools/subdir.mk
  12. -include components/server/subdir.mk
  13. -include User/subdir.mk
  14. -include Startup/subdir.mk
  15. -include Peripheral/src/subdir.mk
  16. -include Debug/subdir.mk
  17. -include Core/subdir.mk
  18. -include subdir.mk
  19. -include objects.mk
  20. ifneq ($(MAKECMDGOALS),clean)
  21. ifneq ($(strip $(S_DEPS)),)
  22. -include $(S_DEPS)
  23. endif
  24. ifneq ($(strip $(S_UPPER_DEPS)),)
  25. -include $(S_UPPER_DEPS)
  26. endif
  27. ifneq ($(strip $(ASM_DEPS)),)
  28. -include $(ASM_DEPS)
  29. endif
  30. ifneq ($(strip $(ASM_UPPER_DEPS)),)
  31. -include $(ASM_UPPER_DEPS)
  32. endif
  33. ifneq ($(strip $(C_DEPS)),)
  34. -include $(C_DEPS)
  35. endif
  36. endif
  37. -include ../makefile.defs
  38. # Add inputs and outputs from these tool invocations to the build variables
  39. SECONDARY_FLASH += \
  40. coll_16.hex \
  41. SECONDARY_LIST += \
  42. coll_16.lst \
  43. SECONDARY_SIZE += \
  44. coll_16.siz \
  45. # All Target
  46. all:
  47. $(MAKE) --no-print-directory main-build
  48. main-build: coll_16.elf secondary-outputs
  49. # Tool invocations
  50. coll_16.elf: $(OBJS) $(USER_OBJS)
  51. @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -fmax-errors=20 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "d:/git_workspace/bozz/loto/bozz_loto_software/for_can/ISCS_CABINET_COLL_16/Library/SRC/Ld/Link.ld" -nostartfiles -Xlinker --gc-sections -Xlinker --print-memory-usage -Wl,-Map,"coll_16.map" --specs=nano.specs --specs=nosys.specs -o "coll_16.elf" $(OBJS) $(LIBS)
  52. coll_16.hex: coll_16.elf
  53. @ riscv-none-embed-objcopy -O ihex "coll_16.elf" "coll_16.hex"
  54. coll_16.lst: coll_16.elf
  55. @ riscv-none-embed-objdump --all-headers --demangle --disassemble -M xw "coll_16.elf" > "coll_16.lst"
  56. coll_16.siz: coll_16.elf
  57. riscv-none-embed-size --format=berkeley "coll_16.elf"
  58. # Other Targets
  59. clean:
  60. -$(RM) $(OBJS) $(EXPANDS) $(CALLGRAPH_DOT) $(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(S_DEPS)$(S_UPPER_DEPS)$(ASM_DEPS)$(ASM_UPPER_DEPS)$(C_DEPS) coll_16.elf
  61. secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
  62. .PHONY: all clean dependents
  63. -include ../makefile.targets