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

CG_TOOL_ROOT := /home/user/ti/ti-cgt-c6000_8.1.3

GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt"
GEN_CMDS__FLAG := -l"configPkg/linker.cmd"

ORDERED_OBJS += \
"./GPIO_soc.obj" \
"./SPI_drv.obj" \
"./SPI_soc.obj" \
"./SPI_v1.obj" \
"./UART_drv.obj" \
"./UART_soc.obj" \
"./UART_v1.obj" \
"./mcspi.obj" \
"./mcspiLoopbackApp.obj" \
"./uart.obj" \
$(GEN_CMDS__FLAG) \
-llibc.a \

-include ../makefile.init

RM := rm -rf
RMDIR := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir_vars.mk
-include subdir_rules.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C55_DEPS)),)
-include $(C55_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(S67_DEPS)),)
-include $(S67_DEPS)
endif
ifneq ($(strip $(S62_DEPS)),)
-include $(S62_DEPS)
endif
ifneq ($(strip $(S_DEPS)),)
-include $(S_DEPS)
endif
ifneq ($(strip $(OPT_DEPS)),)
-include $(OPT_DEPS)
endif
ifneq ($(strip $(C??_DEPS)),)
-include $(C??_DEPS)
endif
ifneq ($(strip $(ASM_UPPER_DEPS)),)
-include $(ASM_UPPER_DEPS)
endif
ifneq ($(strip $(S??_DEPS)),)
-include $(S??_DEPS)
endif
ifneq ($(strip $(C64_DEPS)),)
-include $(C64_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(S64_DEPS)),)
-include $(S64_DEPS)
endif
ifneq ($(strip $(INO_DEPS)),)
-include $(INO_DEPS)
endif
ifneq ($(strip $(CLA_DEPS)),)
-include $(CLA_DEPS)
endif
ifneq ($(strip $(S55_DEPS)),)
-include $(S55_DEPS)
endif
ifneq ($(strip $(SV7A_DEPS)),)
-include $(SV7A_DEPS)
endif
ifneq ($(strip $(C62_DEPS)),)
-include $(C62_DEPS)
endif
ifneq ($(strip $(C67_DEPS)),)
-include $(C67_DEPS)
endif
ifneq ($(strip $(PDE_DEPS)),)
-include $(PDE_DEPS)
endif
ifneq ($(strip $(K_DEPS)),)
-include $(K_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C43_DEPS)),)
-include $(C43_DEPS)
endif
ifneq ($(strip $(S43_DEPS)),)
-include $(S43_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(SA_DEPS)),)
-include $(SA_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
EXE_OUTPUTS += \
MCSPI_BasicLoopbackExample.out \

EXE_OUTPUTS__QUOTED += \
"MCSPI_BasicLoopbackExample.out" \

BIN_OUTPUTS += \
MCSPI_BasicLoopbackExample.hex \

BIN_OUTPUTS__QUOTED += \
"MCSPI_BasicLoopbackExample.hex" \


# All Target
all: $(OBJS) $(GEN_CMDS)
	@$(MAKE) --no-print-directory -Onone "MCSPI_BasicLoopbackExample.out"

# Tool invocations
MCSPI_BasicLoopbackExample.out: $(OBJS) $(GEN_CMDS)
	@echo 'Building target: "$@"'
	@echo 'Invoking: C6000 Linker'
	"/home/user/ti/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 -g --define=SOC_AM572x --define=evmAM572x --define=USE_BIOS --define=C66X --display_error_number --diag_wrap=off --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --exit_hook=ti_utils_exit --exit_parm=address --entry_hook=ti_utils_entry --entry_parm=address -z -m"MCSPI_BasicLoopbackExample.map" -i"/home/user/ti/ti-cgt-c6000_8.1.3/lib" -i"/home/user/ti/ti-cgt-c6000_8.1.3/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="MCSPI_BasicLoopbackExample_linkInfo.xml" --rom_model -o "MCSPI_BasicLoopbackExample.out" $(ORDERED_OBJS)
	@echo 'Finished building target: "$@"'
	@echo ' '
	@$(MAKE) --no-print-directory post-build

MCSPI_BasicLoopbackExample.hex: $(EXE_OUTPUTS)
	@echo 'Building files: $(strip $(EXE_OUTPUTS__QUOTED))'
	@echo 'Invoking: C6000 Hex Utility'
	"/home/user/ti/ti-cgt-c6000_8.1.3/bin/hex6x"  -o "MCSPI_BasicLoopbackExample.hex" $(EXE_OUTPUTS__QUOTED)
	@echo 'Finished building: $(strip $(EXE_OUTPUTS__QUOTED))'
	@echo ' '
	@$(MAKE) --no-print-directory post-build

# Other Targets
clean:
	-$(RM) $(GEN_CMDS__QUOTED)$(GEN_MISC_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)
	-$(RMDIR) $(GEN_MISC_DIRS__QUOTED)
	-$(RM) "GPIO_soc.obj" "SPI_drv.obj" "SPI_soc.obj" "SPI_v1.obj" "UART_drv.obj" "UART_soc.obj" "UART_v1.obj" "mcspi.obj" "mcspiLoopbackApp.obj" "uart.obj" 
	-$(RM) "GPIO_soc.d" "SPI_drv.d" "SPI_soc.d" "SPI_v1.d" "UART_drv.d" "UART_soc.d" "UART_v1.d" "mcspi.d" "mcspiLoopbackApp.d" "uart.d" 
	-@echo 'Finished clean'
	-@echo ' '

post-build:
	-/home/user/ti/pdk_am57xx_1_0_7/packages/pdkAppImageCreate.sh /home/user/ti/pdk_am57xx_1_0_7/packages /home/user/ti/ti-cgt-c6000_8.1.3 /home/user/workspace_v7/MCSPI_BasicLoopbackExample/Debug MCSPI_BasicLoopbackExample AM572x dsp
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets

