+4
-5
@@ -14,7 +14,6 @@ RM := rm -rf
|
||||
-include Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk
|
||||
-include Core/Startup/subdir.mk
|
||||
-include Core/Src/subdir.mk
|
||||
-include subdir.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
@@ -63,8 +62,8 @@ all: main-build
|
||||
main-build: m3s.elf secondary-outputs
|
||||
|
||||
# Tool invocations
|
||||
m3s.elf: $(OBJS) $(USER_OBJS) /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/STM32F103ZETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
||||
arm-none-eabi-gcc -o "m3s.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/STM32F103ZETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="m3s.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -u _printf_float -Wl,--start-group -lc -lm -Wl,--end-group
|
||||
m3s.elf: $(OBJS) $(USER_OBJS) C:\Users\wuwen\Desktop\M3s_stm32\STM32F103ZETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
||||
arm-none-eabi-gcc -o "m3s.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"C:\Users\wuwen\Desktop\M3s_stm32\STM32F103ZETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="m3s.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -u _printf_float -Wl,--start-group -lc -lm -Wl,--end-group
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
@@ -85,7 +84,7 @@ m3s.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) m3s.elf
|
||||
-$(RM) default.size.stdout m3s.bin m3s.elf m3s.list
|
||||
-@echo ' '
|
||||
|
||||
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
|
||||
@@ -97,6 +96,6 @@ fail-specified-linker-script-missing:
|
||||
warn-no-linker-script-specified:
|
||||
@echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
|
||||
|
||||
.PHONY: all clean dependents fail-specified-linker-script-missing warn-no-linker-script-specified
|
||||
.PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified
|
||||
|
||||
-include ../makefile.targets
|
||||
|
||||
Reference in New Issue
Block a user