#*******************************************************************************
#* FILE PURPOSE: Top level makefile for Creating Component Libraries
#*******************************************************************************
#* FILE NAME: makefile
#*
#* DESCRIPTION: Defines Compiler tools paths, libraries , Build Options 
#*
#*
#*******************************************************************************
#*
# (Mandatory) Specify where various tools are installed.

# Output for prebuilt generated libraries
export LIBDIR ?= ./lib

# ROOT Directory
export ROOTDIR := ../../..

# INCLUDE Directory
export INCDIR := $(EDMA3LLD_BIOS6_INSTALLDIR)/packages;$(C6X_GEN_INSTALL_PATH)/include;/home/gtbldadm/ti/ipc_1_24_03_32/packages;/home/gtbldadm/ti/bios_6_33_06_50/packages;/home/gtbldadm/ti/xdctools_3_23_04_60/packages;$(UIA_INSTALLDIR)/packages;/home/gtbldadm/pdk_build_6678_1_1_2_6/gtcsl_platform/Shannon;/home/gtbldadm/pdk_build_6678_1_1_2_6/gtcsl_platform/Shannon/ti/release/full;$(ROOTDIR)

# Common Macros used in make

ifndef RM
export RM = rm -f
endif

ifndef CP
export CP = cp -p
endif

export MKDIR = mkdir -p

ifndef RMDIR
export RMDIR = rm -rf
endif

ifndef SED
export SED = sed
endif

ifndef MAKE
export MAKE = make
endif

# PHONY Targets
.PHONY: all clean cleanall 

# FORCE Targets
FORCE: 

# all rule
all: .executables
.executables: .libraries
.libraries:

# Clean Rule
clean:: clean_package
# Clean Top Level Object Directory 
clean_package :
	$(RMDIR) $(LIBDIR)/*/
	$(RMDIR) package/cfg


# Make rule to create $(LIBDIR)/ti.drv.pcie.ae66 library
.libraries: $(LIBDIR)/ti.drv.pcie.ae66
$(LIBDIR)/ti.drv.pcie.ae66: FORCE
	$(MAKE) -f ./lib/ti.drv.pcie.ae66.mk $@
# Rule to clean $(LIBDIR)/ti.drv.pcie.ae66 library
clean ::
	$(RM) $(LIBDIR)/ti.drv.pcie.ae66


# Make rule to create $(LIBDIR)/ti.drv.pcie.ae66e library
.libraries: $(LIBDIR)/ti.drv.pcie.ae66e
$(LIBDIR)/ti.drv.pcie.ae66e: FORCE
	$(MAKE) -f ./lib/ti.drv.pcie.ae66e.mk $@
# Rule to clean $(LIBDIR)/ti.drv.pcie.ae66e library
clean ::
	$(RM) $(LIBDIR)/ti.drv.pcie.ae66e
