################################################################################
# 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 src/subdir.mk
-include StdPeriphDriver/subdir.mk
-include Startup/subdir.mk
-include RVMSIS/subdir.mk
-include subdir.mk
-include objects.mk

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

SECONDARY_SIZE += \
ch573_user_bootloader.siz \


# All Target
all: ch573_user_bootloader.elf secondary-outputs

# Tool invocations
ch573_user_bootloader.elf: $(OBJS) $(USER_OBJS)
	@	@	riscv-none-embed-gcc -march=rv32imac -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mno-save-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common  -g -T "F:\wch\CH573EVT_1.5\EXAM\ch573_user_bootloader\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"../" -L"F:\wch\CH573EVT_1.5\EXAM\SRC\StdPeriphDriver" -Xlinker --print-memory-usage -Wl,-Map,"ch573_user_bootloader.map" --specs=nano.specs --specs=nosys.specs -o "ch573_user_bootloader.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@	@
ch573_user_bootloader.hex: ch573_user_bootloader.elf
	@	riscv-none-embed-objcopy -O ihex "ch573_user_bootloader.elf"  "ch573_user_bootloader.hex"
	@	@
ch573_user_bootloader.siz: ch573_user_bootloader.elf
	@	riscv-none-embed-size --format=berkeley "ch573_user_bootloader.elf"
	@	@
# Other Targets
clean:
	-$(RM) $(ASM_UPPER_DEPS)$(OBJS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS) ch573_user_bootloader.elf
	-@
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)

.PHONY: all clean dependents

-include ../makefile.targets
