#******************************************************************************
#
# Makefile - Rules for building the Sample SD Card Application.
#
# Copyright (c) 2009-2011 Texas Instruments Incorporated.  All rights reserved.
# Software License Agreement
# 
# Texas Instruments (TI) is supplying this software for use solely and
# exclusively on TI's microcontroller products. The software is owned by
# TI and/or its suppliers, and is protected under applicable copyright
# laws. You may not combine this software with "viral" open-source
# software in order to form a larger program.
# 
# THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
# NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
# NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
# CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
# DAMAGES, FOR ANY REASON WHATSOEVER.
# 
# This is part of revision 6852 of the RDK-IDM-SBC Firmware Package.
#
#******************************************************************************

#
# Defines the part type that this project uses.
#
PART=LM3S9B92

#
# The base directory for StellarisWare.
#
ROOT=../../..

#
# Include the common make definitions.
#
include ${ROOT}/makedefs

#
# Where to find source files that do not live in this directory.
#
VPATH=../../../third_party/bget
VPATH+=../drivers
VPATH+=../../../third_party/fatfs/port
VPATH+=../../../third_party/fatfs/src
VPATH+=../../../utils

#
# Where to find header files that do not live in the source directory.
#
IPATH=.
IPATH+=..
IPATH+=../../..
IPATH+=../../../third_party/bget
IPATH+=../../../third_party/lwip-1.3.2/ports/stellaris/include
IPATH+=../../../third_party/lwip-1.3.2/src/include
IPATH+=../../../third_party/lwip-1.3.2/src/include/ipv4
IPATH+=../../../third_party

#
# The default rule, which causes the Sample SD Card Application to be built.
#
all: ${COMPILER}
all: ${COMPILER}/sd_card.axf

#
# The rule to clean out all the build products.
#
clean:
	@rm -rf ${COMPILER} ${wildcard *~}

#
# The rule to create the target directory.
#
${COMPILER}:
	@mkdir ${COMPILER}

#
# Rules for building the Sample SD Card Application.
#
${COMPILER}/sd_card.axf: ${COMPILER}/cmdline.o
${COMPILER}/sd_card.axf: ${COMPILER}/ff.o
${COMPILER}/sd_card.axf: ${COMPILER}/kitronix320x240x16_ssd2119_idm_sbc.o
${COMPILER}/sd_card.axf: ${COMPILER}/locator.o
${COMPILER}/sd_card.axf: ${COMPILER}/lwiplib.o
${COMPILER}/sd_card.axf: ${COMPILER}/mmc-rdk-idm-sbc.o
${COMPILER}/sd_card.axf: ${COMPILER}/sd_card.o
${COMPILER}/sd_card.axf: ${COMPILER}/set_pinout.o
${COMPILER}/sd_card.axf: ${COMPILER}/startup_${COMPILER}.o
${COMPILER}/sd_card.axf: ${COMPILER}/swupdate.o
${COMPILER}/sd_card.axf: ${COMPILER}/touch.o
${COMPILER}/sd_card.axf: ${COMPILER}/uartstdio.o
${COMPILER}/sd_card.axf: ${COMPILER}/ustdlib.o
${COMPILER}/sd_card.axf: ${ROOT}/grlib/${COMPILER}/libgr.a
${COMPILER}/sd_card.axf: ${ROOT}/driverlib/${COMPILER}/libdriver.a
${COMPILER}/sd_card.axf: sd_card.ld
SCATTERgcc_sd_card=sd_card.ld
ENTRY_sd_card=ResetISR
CFLAGSgcc=-DUART_BUFFERED -DTARGET_IS_TEMPEST_RB1

#
# Include the automatically generated dependency files.
#
ifneq (${MAKECMDGOALS},clean)
-include ${wildcard ${COMPILER}/*.d} __dummy__
endif
