################################################################################
# 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 subdir.mk
-include objects.mk

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
LST += \
5320_pt.lst \

FLASH_IMAGE += \
boot.bin \

SIZEDUMMY += \
sizedummy \


# All Target
all: 5320_pt.elf secondary-outputs

# Tool invocations
5320_pt.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: TC32 C Linker'
	tc32-elf-ld  -T ../boot.link -o "5320_pt.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

5320_pt.lst: 5320_pt.elf
	@echo 'Invoking: TC32 Create Extended Listing'
	tc32-elf-objdump -x -D -l -S 5320_pt.elf  >"5320_pt.lst"
	@echo 'Finished building: $@'
	@echo ' '

boot.bin: 5320_pt.elf
	@echo 'Create Flash image (binary format)'
	tc32-elf-objcopy -O binary 5320_pt.elf  "boot.bin"
	@echo 'Finished building: $@'
	@echo ' '

sizedummy: 5320_pt.elf
	@echo 'Invoking: Print Size'
	tc32-elf-size -t 5320_pt.elf
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(FLASH_IMAGE)$(ELFS)$(OBJS)$(LST)$(SIZEDUMMY) 5320_pt.elf
	-@echo ' '

secondary-outputs: $(LST) $(FLASH_IMAGE) $(SIZEDUMMY)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
