makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ################################################################################
  2. # Automatically-generated file. Do not edit!
  3. # Toolchain: GNU Tools for STM32 (12.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/STM32H7xx_HAL_Driver/subdir.mk
  10. -include Core/Startup/subdir.mk
  11. -include Core/Src/subdir.mk
  12. -include Common/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 := STM32H7-node-red-CM4
  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. STM32H7-node-red-CM4.elf \
  37. MAP_FILES += \
  38. STM32H7-node-red-CM4.map \
  39. SIZE_OUTPUT += \
  40. default.size.stdout \
  41. OBJDUMP_LIST += \
  42. STM32H7-node-red-CM4.list \
  43. # All Target
  44. all: main-build
  45. # Main-build Target
  46. main-build: STM32H7-node-red-CM4.elf secondary-outputs
  47. # Tool invocations
  48. STM32H7-node-red-CM4.elf STM32H7-node-red-CM4.map: $(OBJS) $(USER_OBJS) /home/jakubski/Projects/node-red/STM32H7-node-red/CM4/STM32H745XIHX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
  49. arm-none-eabi-gcc -o "STM32H7-node-red-CM4.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"/home/jakubski/Projects/node-red/STM32H7-node-red/CM4/STM32H745XIHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="STM32H7-node-red-CM4.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
  50. @echo 'Finished building target: $@'
  51. @echo ' '
  52. default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  53. arm-none-eabi-size $(EXECUTABLES)
  54. @echo 'Finished building: $@'
  55. @echo ' '
  56. STM32H7-node-red-CM4.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  57. arm-none-eabi-objdump -h -S $(EXECUTABLES) > "STM32H7-node-red-CM4.list"
  58. @echo 'Finished building: $@'
  59. @echo ' '
  60. # Other Targets
  61. clean:
  62. -$(RM) STM32H7-node-red-CM4.elf STM32H7-node-red-CM4.list STM32H7-node-red-CM4.map default.size.stdout
  63. -@echo ' '
  64. secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST)
  65. fail-specified-linker-script-missing:
  66. @echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
  67. @exit 2
  68. warn-no-linker-script-specified:
  69. @echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
  70. .PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified
  71. -include ../makefile.targets