################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include rt_thread_nano/src/subdir.mk
-include rt_thread_nano/libcpu/arm/cortex-m4/subdir.mk
-include rt_thread_nano/components/finsh/subdir.mk
-include rt_thread_nano/components/device/subdir.mk
-include rt_thread_nano/bsp/cm4/drivers/subdir.mk
-include libraries/drivers/src/subdir.mk
-include libraries/cmsis/cm4/device_support/startup/subdir.mk
-include libraries/cmsis/cm4/device_support/subdir.mk
-include demo/example/src/subdir.mk
-include demo/board/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
SECONDARY_FLASH += \
rt_thread_nano.hex \

SECONDARY_SIZE += \
rt_thread_nano.siz \


# All Target
all: rt_thread_nano.elf secondary-outputs

# Tool invocations
rt_thread_nano.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GNU ARM Cross C Linker'
	arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -O0 -ffunction-sections  -g -T "D:\GMD_workspace\workspace_cm4\rt_thread_nano\libraries\cmsis\cm4\device_support\startup\linker\AT32F435xG_FLASH.ld" -Xlinker --gc-sections -Wl,-Map,"rt_thread_nano.map" --specs=nano.specs --specs=nosys.specs -o "rt_thread_nano.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

rt_thread_nano.hex: rt_thread_nano.elf
	@echo 'Invoking: GNU ARM Cross Create Flash Image'
	arm-none-eabi-objcopy -O ihex "rt_thread_nano.elf"  "rt_thread_nano.hex"
	@echo 'Finished building: $@'
	@echo ' '

rt_thread_nano.siz: rt_thread_nano.elf
	@echo 'Invoking: GNU ARM Cross Print Size'
	arm-none-eabi-size --format=berkeley "rt_thread_nano.elf"
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(OBJS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS) rt_thread_nano.elf
	-@echo ' '

secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
