makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ################################################################################
  2. # Automatically-generated file. Do not edit!
  3. # Toolchain: GNU Tools for STM32 (13.3.rel1)
  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 Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk
  10. -include Core/can_tp/subdir.mk
  11. -include Core/Startup/subdir.mk
  12. -include Core/Src/subdir.mk
  13. -include objects.mk
  14. ifneq ($(MAKECMDGOALS),clean)
  15. ifneq ($(strip $(S_DEPS)),)
  16. -include $(S_DEPS)
  17. endif
  18. ifneq ($(strip $(S_UPPER_DEPS)),)
  19. -include $(S_UPPER_DEPS)
  20. endif
  21. ifneq ($(strip $(C_DEPS)),)
  22. -include $(C_DEPS)
  23. endif
  24. endif
  25. -include ../makefile.defs
  26. OPTIONAL_TOOL_DEPS := \
  27. $(wildcard ../makefile.defs) \
  28. $(wildcard ../makefile.init) \
  29. $(wildcard ../makefile.targets) \
  30. BUILD_ARTIFACT_NAME := stm32f405_boot
  31. BUILD_ARTIFACT_EXTENSION := elf
  32. BUILD_ARTIFACT_PREFIX :=
  33. BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
  34. # Add inputs and outputs from these tool invocations to the build variables
  35. EXECUTABLES += \
  36. stm32f405_boot.elf \
  37. MAP_FILES += \
  38. stm32f405_boot.map \
  39. SIZE_OUTPUT += \
  40. default.size.stdout \
  41. OBJDUMP_LIST += \
  42. stm32f405_boot.list \
  43. OBJCOPY_HEX += \
  44. stm32f405_boot.hex \
  45. # All Target
  46. all: main-build
  47. # Main-build Target
  48. main-build: stm32f405_boot.elf secondary-outputs
  49. # Tool invocations
  50. stm32f405_boot.elf stm32f405_boot.map: $(OBJS) $(USER_OBJS) D:\ODrive_STM32F405\stm32F405_bootloader\stm32f405_boot\STM32F405RGTX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
  51. arm-none-eabi-gcc -o "stm32f405_boot.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"D:\ODrive_STM32F405\stm32F405_bootloader\stm32f405_boot\STM32F405RGTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="stm32f405_boot.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
  52. @echo 'Finished building target: $@'
  53. @echo ' '
  54. default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  55. arm-none-eabi-size $(EXECUTABLES)
  56. @echo 'Finished building: $@'
  57. @echo ' '
  58. stm32f405_boot.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  59. arm-none-eabi-objdump -h -S $(EXECUTABLES) > "stm32f405_boot.list"
  60. @echo 'Finished building: $@'
  61. @echo ' '
  62. stm32f405_boot.hex: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  63. arm-none-eabi-objcopy -O ihex $(EXECUTABLES) "stm32f405_boot.hex"
  64. @echo 'Finished building: $@'
  65. @echo ' '
  66. # Other Targets
  67. clean:
  68. -$(RM) default.size.stdout stm32f405_boot.elf stm32f405_boot.hex stm32f405_boot.list stm32f405_boot.map
  69. -@echo ' '
  70. secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_HEX)
  71. fail-specified-linker-script-missing:
  72. @echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
  73. @exit 2
  74. warn-no-linker-script-specified:
  75. @echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
  76. .PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified
  77. -include ../makefile.targets