| [41] | 1 | ################################################################################
|
|---|
| 2 | # Automatically-generated file. Do not edit!
|
|---|
| 3 | # Toolchain: GNU Tools for STM32 (13.3.rel1)
|
|---|
| 4 | ################################################################################
|
|---|
| 5 |
|
|---|
| 6 | -include ../makefile.init
|
|---|
| 7 |
|
|---|
| 8 | RM := rm -rf
|
|---|
| 9 |
|
|---|
| 10 | # All of the sources participating in the build are defined here
|
|---|
| 11 | -include sources.mk
|
|---|
| 12 | -include src/subdir.mk
|
|---|
| 13 | -include Drivers/STM32C0xx_HAL_Driver/subdir.mk
|
|---|
| 14 | -include Drivers/CMSIS/subdir.mk
|
|---|
| 15 | -include Application/User/Startup/subdir.mk
|
|---|
| 16 | -include Application/User/Core/subdir.mk
|
|---|
| 17 | -include objects.mk
|
|---|
| 18 |
|
|---|
| 19 | ifneq ($(MAKECMDGOALS),clean)
|
|---|
| 20 | ifneq ($(strip $(S_DEPS)),)
|
|---|
| 21 | -include $(S_DEPS)
|
|---|
| 22 | endif
|
|---|
| 23 | ifneq ($(strip $(S_UPPER_DEPS)),)
|
|---|
| 24 | -include $(S_UPPER_DEPS)
|
|---|
| 25 | endif
|
|---|
| 26 | ifneq ($(strip $(C_DEPS)),)
|
|---|
| 27 | -include $(C_DEPS)
|
|---|
| 28 | endif
|
|---|
| 29 | endif
|
|---|
| 30 |
|
|---|
| 31 | -include ../makefile.defs
|
|---|
| 32 |
|
|---|
| 33 | OPTIONAL_TOOL_DEPS := \
|
|---|
| 34 | $(wildcard ../makefile.defs) \
|
|---|
| 35 | $(wildcard ../makefile.init) \
|
|---|
| 36 | $(wildcard ../makefile.targets) \
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | BUILD_ARTIFACT_NAME := firmware_v2
|
|---|
| 40 | BUILD_ARTIFACT_EXTENSION := elf
|
|---|
| 41 | BUILD_ARTIFACT_PREFIX :=
|
|---|
| 42 | BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
|---|
| 43 |
|
|---|
| 44 | # Add inputs and outputs from these tool invocations to the build variables
|
|---|
| 45 | EXECUTABLES += \
|
|---|
| 46 | firmware_v2.elf \
|
|---|
| 47 |
|
|---|
| 48 | MAP_FILES += \
|
|---|
| 49 | firmware_v2.map \
|
|---|
| 50 |
|
|---|
| 51 | SIZE_OUTPUT += \
|
|---|
| 52 | default.size.stdout \
|
|---|
| 53 |
|
|---|
| 54 | OBJDUMP_LIST += \
|
|---|
| 55 | firmware_v2.list \
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | # All Target
|
|---|
| 59 | all: main-build
|
|---|
| 60 |
|
|---|
| 61 | # Main-build Target
|
|---|
| 62 | main-build: firmware_v2.elf secondary-outputs
|
|---|
| 63 |
|
|---|
| 64 | # Tool invocations
|
|---|
| 65 | firmware_v2.elf firmware_v2.map: $(OBJS) $(USER_OBJS) D:\Projekte\ecs_PowerPro\trunk\firmware_v2\STM32CubeIDE\STM32C031K4TX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
|---|
| 66 | arm-none-eabi-gcc -o "firmware_v2.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m0plus -T"D:\Projekte\ecs_PowerPro\trunk\firmware_v2\STM32CubeIDE\STM32C031K4TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="firmware_v2.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
|
|---|
| 67 | @echo 'Finished building target: $@'
|
|---|
| 68 | @echo ' '
|
|---|
| 69 |
|
|---|
| 70 | default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
|---|
| 71 | arm-none-eabi-size $(EXECUTABLES)
|
|---|
| 72 | @echo 'Finished building: $@'
|
|---|
| 73 | @echo ' '
|
|---|
| 74 |
|
|---|
| 75 | firmware_v2.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
|---|
| 76 | arm-none-eabi-objdump -h -S $(EXECUTABLES) > "firmware_v2.list"
|
|---|
| 77 | @echo 'Finished building: $@'
|
|---|
| 78 | @echo ' '
|
|---|
| 79 |
|
|---|
| 80 | # Other Targets
|
|---|
| 81 | clean:
|
|---|
| 82 | -$(RM) default.size.stdout firmware_v2.elf firmware_v2.list firmware_v2.map
|
|---|
| 83 | -@echo ' '
|
|---|
| 84 |
|
|---|
| 85 | secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST)
|
|---|
| 86 |
|
|---|
| 87 | fail-specified-linker-script-missing:
|
|---|
| 88 | @echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
|
|---|
| 89 | @exit 2
|
|---|
| 90 |
|
|---|
| 91 | warn-no-linker-script-specified:
|
|---|
| 92 | @echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
|
|---|
| 93 |
|
|---|
| 94 | .PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified
|
|---|
| 95 |
|
|---|
| 96 | -include ../makefile.targets
|
|---|