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

-include ../makefile.init

define loop
$(eval do=$(wordlist 1, ${1}, ${2}))\
$(if $(word 1, $(do)),\
	$(eval last=$(subst $(do),,${2}))\
	$(info $(strip ${3}) $(do))\
	$(shell ${3} $(do))\
	$(call loop, ${1}, $(last), ${3}),$(info ***** $(strip ${3}) finished *****))
endef
RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include src/iboot/critical/subdir.mk
-include src/iboot/OS_prjcfg/subdir.mk
-include src/iboot/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
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
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif

-include ../makefile.defs

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

SECONDARY_LIST += \
dtu_Iboot_Debug.lst \

SECONDARY_SIZE += \
dtu_Iboot_Debug.siz \


# All Target
all: dtu_Iboot_Debug.elf secondary-outputs

# Tool invocations
dtu_Iboot_Debug.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: Cross ARM GNU C++ Linker'
	arm-djyos-eabi-g++ -mcpu=cortex-m4 -mthumb -mlittle-endian -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -T "../src/lds/iboot.lds" -nostartfiles -Xlinker --gc-sections -L"D:\DJYOS_Studio\Workspace\dtu\libos_Iboot_Debug" -L"D:/DJYOS_Studio/Workspace/dtu/lib" -L"D:\DJYOS_Studio\Workspace\dtu\libfat_file_system_Iboot_Debug" -L"D:\DJYOS_Studio\Workspace\dtu\libat32f43x_Iboot_Debug" -L"D:\DJYOS_Studio\Workspace\dtu\libuser_app_update_Iboot_Debug" -Wl,-Map,"dtu_Iboot_Debug.map" -Wl,--start-group  -lfat_file_system -lat32f43x -lfat_file_system -los_Iboot -lat32f43x -luser_app_update                      -Wl,--end-group -o "dtu_Iboot_Debug.elf" -Wl,--start-group $(OBJS) $(USER_OBJS) $(LIBS) -Wl,--end-group && addsh.exe dtu_Iboot_Debug.elf
	@echo 'Finished building target: $@'
	@echo ' '

dtu_Iboot_Debug.bin: dtu_Iboot_Debug.elf
	@echo 'Invoking: Cross ARM GNU Create Flash Image'
	arm-djyos-eabi-objcopy -O binary "dtu_Iboot_Debug.elf"  "dtu_Iboot_Debug.bin" && addver.exe dtu_Iboot_Debug.bin
	@echo 'Finished building: $@'
	@echo ' '

dtu_Iboot_Debug.lst: dtu_Iboot_Debug.elf
	@echo 'Invoking: Cross ARM GNU Create Listing'
	arm-djyos-eabi-objdump --source --all-headers --demangle --line-numbers --wide "dtu_Iboot_Debug.elf" > "dtu_Iboot_Debug.lst"
	@echo 'Finished building: $@'
	@echo ' '

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

# Other Targets
clean:
	-@echo ' '

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

.PHONY: all clean dependents

-include ../makefile.targets
