################################################################################
# MRS Version: 2.2.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 Startup/subdir.mk
-include SRC/Peripheral/src/subdir.mk
-include SRC/Debug/subdir.mk
-include SRC/Core/subdir.mk
-include Profile/subdir.mk
-include LIB/subdir.mk
-include HAL/subdir.mk
-include APP/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 += \
OnlyUpdateApp_IAP.bin \
OnlyUpdateApp_IAP.hex \

SECONDARY_LIST += \
OnlyUpdateApp_IAP.lst \

SECONDARY_SIZE += \
OnlyUpdateApp_IAP.siz \


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

main-build: OnlyUpdateApp_IAP.elf secondary-outputs

post-build: 
	 riscv-none-embed-objcopy -O ihex "OnlyUpdateApp_IAP.elf" "OnlyUpdateApp_IAP.hex" && riscv-none-embed-objcopy -O binary "OnlyUpdateApp_IAP.elf" "OnlyUpdateApp_IAP.bin"

# Tool invocations
OnlyUpdateApp_IAP.elf: $(OBJS) $(USER_OBJS)
	@	riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -mcmodel=medany -msmall-data-limit=8 -mno-save-restore -fmax-errors=20 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -g -T "d:/git_workspace/bozz/loto/bozz_loto_software/for_can/ISCS_KEY_BASE_CAN/OnlyUpdateApp_IAP/Ld/Link.ld" -nostartfiles -Xlinker --gc-sections -L"d:\git_workspace\bozz\loto\bozz_loto_software\for_can\ISCS_KEY_BASE_CAN\OnlyUpdateApp_IAP" -Xlinker --print-memory-usage -Xlinker --print-memory-usage -Wl,-Map,"OnlyUpdateApp_IAP.map" --specs=nano.specs --specs=nosys.specs -o "OnlyUpdateApp_IAP.elf" $(OBJS)  $(LIBS)
OnlyUpdateApp_IAP.bin: OnlyUpdateApp_IAP.elf
	@	riscv-none-embed-objcopy -O binary "OnlyUpdateApp_IAP.elf" "OnlyUpdateApp_IAP.bin"
OnlyUpdateApp_IAP.hex: OnlyUpdateApp_IAP.elf
	@	riscv-none-embed-objcopy -O ihex "OnlyUpdateApp_IAP.elf" "OnlyUpdateApp_IAP.hex"
OnlyUpdateApp_IAP.lst: OnlyUpdateApp_IAP.elf
	@	riscv-none-embed-objdump --source --all-headers --demangle -M xw --line-numbers --wide "OnlyUpdateApp_IAP.elf" > "OnlyUpdateApp_IAP.lst"
OnlyUpdateApp_IAP.siz: OnlyUpdateApp_IAP.elf
	riscv-none-embed-size --format=berkeley "OnlyUpdateApp_IAP.elf"

# Other Targets
clean:
	-$(RM) $(OBJS) $(EXPANDS) $(CALLGRAPH_DOT) $(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(S_DEPS)$(S_UPPER_DEPS)$(ASM_DEPS)$(ASM_UPPER_DEPS)$(C_DEPS) OnlyUpdateApp_IAP.elf

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

.PHONY: all clean dependents

-include ../makefile.targets