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

SHELL := ${ComSpec}

-include ../makefile.init

RM := clean

# All of the sources participating in the build are defined here
-include sources.mk
-include system/subdir.mk
-include src/subdir.mk
-include 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 
EXECUTABLES += \
LedBlink_Core0 \

OBJS := $(SRC_OBJS)
# Quote makefile variable : OBJS 
OBJS := $(subst \ ,@, $(OBJS))
OBJS := $(foreach var, $(OBJS), "$(subst @, ,$(var))")
# Quote makefile variable : C_DEPS 
C_DEPS := $(subst \ ,@, $(C_DEPS))
C_DEPS := $(foreach var, $(C_DEPS), "$(subst @, ,$(var))")

# All Target
all: LedBlink_Core0.ldr

# Tool invocations
LedBlink_Core0.ldr: $(EXECUTABLES) $(SRC_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: CrossCore ARM Loader'
	elfloader.exe -proc ADSP-SC589 -si-revision 0.1 -b spimaster -f binary -width 8 -bcode 1 -core0="C:/security/BD_SecureBootGuideExamples/LedBlink/Project/SC589/LedBlink_Core0/Debug/LedBlink_Core0" -NoFillBlock -o "LedBlink_Core0.ldr"
	@echo 'Finished building target: $@'
	@echo ' '
	$(MAKE) --no-print-directory post-build

LedBlink_Core0: $(USER_OBJS) $(SRC_OBJS)
	@echo 'Invoking: CrossCore ARM Bare Metal C Linker'
	arm-none-eabi-gcc -mproc=ADSP-SC589 -msi-revision=0.1 -T"C:\Analog Devices\CrossCore Embedded Studio 2.2.0\ARM\arm-none-eabi\arm-none-eabi\lib\sc589_rev_any\adsp-sc589.ld" -Wl,--gc-sections -T "C:\Analog Devices\CrossCore Embedded Studio 2.2.0\ARM\arm-none-eabi\arm-none-eabi\lib\sc589_rev_any\adsp-sc58x-common-l2.ld" -mdebug-libs -o  "LedBlink_Core0" $(OBJS) $(USER_OBJS) -lm
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(OBJS)$(LOADER_FILE_OUTPUTS)$(C_DEPS)$(EXECUTABLES) LedBlink_Core0.ldr
	-@echo ' '

post-build:
	-make -f "C:\security\BD_SecureBootGuideExamples\keygen\Makefile" KEYDIR="C:\security\BD_SecureBootGuideExamples\keygen" LedBlink_Core0.blpldr LedBlink_Core0.blxldr LedBlink_Core0.blwldr
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY: post-build

-include ../makefile.targets
