################################################################################
# MRS Version: 2.4.0
# 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 User/subdir.mk
-include Startup/subdir.mk
-include Peripheral/src/subdir.mk
-include Debug/subdir.mk
-include Core/subdir.mk
-include Common/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(S_DEPS)),)
-include $(S_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(ASM_UPPER_DEPS)),)
-include $(ASM_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 += \
CH372Device_V5F.bin \
CH372Device_V5F.hex \

SECONDARY_LIST += \
CH372Device_V5F.lst \

SECONDARY_SIZE += \
CH372Device_V5F.siz \


# All Target
all: 
	$(MAKE) --no-print-directory main-build 

main-build: CH372Device_V5F.elf secondary-outputs

# Tool invocations
CH372Device_V5F.elf: $(OBJS) $(USER_OBJS_ESCAPE)
	@	riscv-wch-elf-gcc -march=rv32imac_zba_zbb_zbc_zbs_xw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -fmax-errors=20 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -T "c:\Users\Administrator\Desktop\ҵĲ\\CH32H417QEU6\\EXAM\SRC\Ld\V5F\Link_v5f.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"CH372Device_V5F.map" --specs=nano.specs --specs=nosys.specs -o "CH372Device_V5F.elf" $(OBJS) $(LIBS)
CH372Device_V5F.bin: CH372Device_V5F.elf
	@	riscv-wch-elf-objcopy -O binary "CH372Device_V5F.elf" "CH372Device_V5F.bin"
CH372Device_V5F.hex: CH372Device_V5F.elf
	@	riscv-wch-elf-objcopy -O ihex "CH372Device_V5F.elf" "CH372Device_V5F.hex"
CH372Device_V5F.lst: CH372Device_V5F.elf
	@	riscv-wch-elf-objdump --all-headers --demangle --disassemble -M xw "CH372Device_V5F.elf" > "CH372Device_V5F.lst"
CH372Device_V5F.siz: CH372Device_V5F.elf
	riscv-wch-elf-size --format=berkeley "CH372Device_V5F.elf"

# Other Targets
clean:
	-$(RM) $(DIR_OBJS) $(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE) CH372Device_V5F.elf
	-$(RM) $(DIR_EXPANDS) $(CALLGRAPH_DOT)
	-$(RM) $(DIR_DEPS)
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)

.PHONY: all clean dependents

-include ../makefile.targets