makefile 3.4 KB

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