makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ################################################################################
  2. # Automatically-generated file. Do not edit!
  3. # Toolchain: GNU Tools for STM32 (10.3-2021.10)
  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/STM32F0xx_HAL_Driver/Src/subdir.mk
  10. -include Core/Startup/subdir.mk
  11. -include Core/Src/subdir.mk
  12. -include APP/Lib/subdir.mk
  13. -include APP/subdir.mk
  14. -include objects.mk
  15. ifneq ($(MAKECMDGOALS),clean)
  16. ifneq ($(strip $(CC_DEPS)),)
  17. -include $(CC_DEPS)
  18. endif
  19. ifneq ($(strip $(C++_DEPS)),)
  20. -include $(C++_DEPS)
  21. endif
  22. ifneq ($(strip $(C_UPPER_DEPS)),)
  23. -include $(C_UPPER_DEPS)
  24. endif
  25. ifneq ($(strip $(CXX_DEPS)),)
  26. -include $(CXX_DEPS)
  27. endif
  28. ifneq ($(strip $(S_DEPS)),)
  29. -include $(S_DEPS)
  30. endif
  31. ifneq ($(strip $(S_UPPER_DEPS)),)
  32. -include $(S_UPPER_DEPS)
  33. endif
  34. ifneq ($(strip $(C_DEPS)),)
  35. -include $(C_DEPS)
  36. endif
  37. ifneq ($(strip $(CPP_DEPS)),)
  38. -include $(CPP_DEPS)
  39. endif
  40. endif
  41. -include ../makefile.defs
  42. OPTIONAL_TOOL_DEPS := \
  43. $(wildcard ../makefile.defs) \
  44. $(wildcard ../makefile.init) \
  45. $(wildcard ../makefile.targets) \
  46. BUILD_ARTIFACT_NAME := STM32F030_ENC28J60
  47. BUILD_ARTIFACT_EXTENSION := elf
  48. BUILD_ARTIFACT_PREFIX :=
  49. BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
  50. # Add inputs and outputs from these tool invocations to the build variables
  51. EXECUTABLES += \
  52. STM32F030_ENC28J60.elf \
  53. MAP_FILES += \
  54. STM32F030_ENC28J60.map \
  55. SIZE_OUTPUT += \
  56. default.size.stdout \
  57. OBJDUMP_LIST += \
  58. STM32F030_ENC28J60.list \
  59. # All Target
  60. all: main-build
  61. # Main-build Target
  62. main-build: STM32F030_ENC28J60.elf secondary-outputs
  63. # Tool invocations
  64. STM32F030_ENC28J60.elf STM32F030_ENC28J60.map: $(OBJS) $(USER_OBJS) D:\NextCloud\Personal-OneDrive\CodeStore\STM32CubeIDE\workspace_1.9.0\STM32F030_ENC28J60\STM32F030K6TX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
  65. arm-none-eabi-g++ -o "STM32F030_ENC28J60.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m0 -T"D:\NextCloud\Personal-OneDrive\CodeStore\STM32CubeIDE\workspace_1.9.0\STM32F030_ENC28J60\STM32F030K6TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="STM32F030_ENC28J60.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group
  66. @echo 'Finished building target: $@'
  67. @echo ' '
  68. default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  69. arm-none-eabi-size $(EXECUTABLES)
  70. @echo 'Finished building: $@'
  71. @echo ' '
  72. STM32F030_ENC28J60.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  73. arm-none-eabi-objdump -h -S $(EXECUTABLES) > "STM32F030_ENC28J60.list"
  74. @echo 'Finished building: $@'
  75. @echo ' '
  76. # Other Targets
  77. clean:
  78. -$(RM) STM32F030_ENC28J60.elf STM32F030_ENC28J60.list STM32F030_ENC28J60.map default.size.stdout
  79. -@echo ' '
  80. secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST)
  81. fail-specified-linker-script-missing:
  82. @echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
  83. @exit 2
  84. warn-no-linker-script-specified:
  85. @echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
  86. .PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified
  87. -include ../makefile.targets