################################################################################
# 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 BSP/spi_flash_driver/subdir.mk
-include BSP/emc_driver/subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
MEMORYMAP += \
memory-map.xml \

IHEXFILES += \
ext_mem_load_boot.hex \

SRECFILES += \
ext_mem_load_boot.srec \

LISTINGS += \
ext_mem_load_boot.lst \


# All Target
all: ext_mem_load_boot secondary-outputs

# Tool invocations
ext_mem_load_boot: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GNU C Linker'
	arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 -L"D:\AC346\A2F_AC346_DF\A2F200\Verilog\Loading_Booting_Ext_Memories\SoftConsole\emcFlashImage_MSS_CM3_0\projects\emcFlashImage_MSS_CM3_0_hw_platform\Debug" -T../debug-in-actel-smartfusion-esram.ld -Wl,-Map=$@.map -o"ext_mem_load_boot" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

memory-map.xml: $(EXECUTABLES)
	@echo 'Invoking: Memory map generator'
	actel-map -o "memory-map.xml" $(EXECUTABLES) $(BUILDCMD)
	@echo 'Finished building: $@'
	@echo ' '

ext_mem_load_boot.hex: $(EXECUTABLES)
	@echo 'Invoking: GNU Intel Hex File Generator'
	arm-none-eabi-objcopy -O ihex $(EXECUTABLES) "ext_mem_load_boot.hex"
	@echo 'Finished building: $@'
	@echo ' '

ext_mem_load_boot.srec: $(EXECUTABLES)
	@echo 'Invoking: GNU S-Record Generator'
	arm-none-eabi-objcopy -O srec $(EXECUTABLES) "ext_mem_load_boot.srec"
	@echo 'Finished building: $@'
	@echo ' '

ext_mem_load_boot.lst: $(EXECUTABLES)
	@echo 'Invoking: GNU Listing Generator'
	arm-none-eabi-objdump -h -S $(EXECUTABLES) > "ext_mem_load_boot.lst"
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(MEMORYMAP)$(OBJS)$(C_DEPS)$(SRECFILES)$(IHEXFILES)$(LISTINGS)$(EXECUTABLES) ext_mem_load_boot
	-@echo ' '

secondary-outputs: $(MEMORYMAP) $(IHEXFILES) $(SRECFILES) $(LISTINGS)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
