@REM ******************************************************************************
@REM * FILE PURPOSE: PDK Builder
@REM ******************************************************************************
@REM * FILE NAME: pdkbuilder.bat
@REM *
@REM * DESCRIPTION: 
@REM *  The batch file cleans and builds the installed PDK components. Please
@REM *  make sure that the PDK Build Environment is setup correctly before calling
@REM *  this file. Following environment variables will be pre-requisite before running the batch file
@REM *  C6X_GEN_INSTALL_PATH: Installation directory for Code Generation Tool
@REM *
@REM * Copyright (C) 2011, Texas Instruments, Inc.
@REM *****************************************************************************

REM *****************************************************************************
REM Procedure to build using XDC. Obsolete
REM *****************************************************************************
@echo OFF

REM *****************************************************************************
REM Clean all components which are a part of the PDK repository
REM *****************************************************************************
gmake -C ti/csl            LIBDIR=./lib clean
gmake -C ti/drv/qmss       LIBDIR=./lib clean
gmake -C ti/drv/cppi       LIBDIR=./lib clean
gmake -C ti/drv/tsip       LIBDIR=./lib clean
gmake -C ti/drv/hyplnk     LIBDIR=./lib clean
gmake -C ti/drv/srio       LIBDIR=./lib clean
gmake -C ti/drv/pcie       LIBDIR=./lib clean
gmake -C ti/drv/tcp3d      LIBDIR=./lib clean
gmake -C ti/drv/emac       LIBDIR=./lib clean
gmake -C ti/drv/rm         LIBDIR=./lib clean

REM *****************************************************************************
REM Build both BE and LE libraries
REM *****************************************************************************
gmake -C ti/csl            LIBDIR=./lib all
gmake -C ti/drv/qmss       LIBDIR=./lib all
gmake -C ti/drv/cppi       LIBDIR=./lib all
gmake -C ti/drv/hyplnk     LIBDIR=./lib all
gmake -C ti/drv/srio       LIBDIR=./lib all
gmake -C ti/drv/pcie       LIBDIR=./lib all
gmake -C ti/drv/tcp3d      LIBDIR=./lib all
gmake -C ti/drv/emac       LIBDIR=./lib all
gmake -C ti/drv/rm         LIBDIR=./lib all

REM *****************************************************************************
REM  DONE
REM *****************************************************************************
