ECHO OFF
REM $Revision:: 2                                                         $
REM $Date:: 11/23/05 7:03a                                                $
REM ========================================================================
REM =  Texas Instruments
REM =  Run this batch file before attempting to build from a command line.
REM =  This file is automatically generated during installation.
REM ========================================================================
REM =  If you get an "Out of Environment Space" error message running this batch 
REM =  file on Windows 98 or Windows Me type the following line at the C:\CCStudio_v3.1> prompt 
REM =  to start a new copy of the Windows Command Interpreter with 2K of Environment Space.
 
REM      COMMAND /E:2048
 
REM =========TI ENVIRONMENT FOR CCS 3.1 C5500 AND BIOS 5.20.02====================================
REM  Assumptions:
REM     TI_DIR is set to your top level CCStudio_vX install path or a partial image of it
REM     Directory structure should then be:
REM     BLDHOST                       - C:  or c:/db_bldhost
REM       TI_DIR                      - CCStudio_vx
REM          TI_TARGDIR               - c5500, c6000 etc
rem             TI_CGENDIR            - cgtools
REM             TI_CSLDIR             - csl under the target, this make move around
REM          	TI_BIOSDIR            - bios
REM
REM   
REM     You could copy other directories from the TI_TARGDIR path if desired.
REM     In theory all you ahve to do is get the first few SETs below pointed to correct place and
REM     everything else will fallout.
REM     If you are using a CCS generated make file then you should edit that make file and get
REM     rid of all the "c:\xxx\xxx" directories and replace them with one of the SETs below.  If
REM     you do that then you can move all your projects and CCS tool image to just about any host
REM     and do the build.
REM 
REM     NOTE: A ccs generated make does not include the .cdb file in the "clean" list.  This should
REM           be added.  Also, the ccs generated make will not create directories so you have to
REM           create them your selfe for "Debug" and "Release".
REM 
REM  ================================================================================================
ECHO ON
SET TI_DIR=%BLDHOST%/CCStudio_v3.1
SET TI_TARGDIR=%TI_DIR%\c5500
SET TI_CGENDIR=%TI_TARGDIR%\cgtools
SET TI_CSLDIR=%TI_TARGDIR%\csl
SET TI_BIOSDIR=%TI_TARGDIR%\bios

SET PATH=%TI_DIR%\bin;%TI_DIR%\cc\bin;%TI_CGENDIR%\bin;%TI_DIR%\plugins\bios;%TI_DIR%\bin\utilities\tconf;%PATH%
SET C55X_A_DIR=%TI_CSLDIR%\include;%TI_BIOSDIR%\include;%TI_CGENDIR%\include;%TI_TARGDIR%\xdais\include;%TI_TARGDIR%\xdais\lib;%TI_CGENDIR%\lib;%TI_BIOSDIR%\lib;%TI_TARGDIR%\rtdx\include;%TI_TARGDIR%\rtdx\lib;%TI_CSLDIR%\lib;
SET C55X_C_DIR=%TI_TARGDIR%\xdais\include;%TI_TARGDIR%\xdais\lib;%TI_CGENDIR%\include;%TI_CGENDIR%\lib;%TI_BIOSDIR%\include;%TI_BIOSDIR%\lib;%TI_TARGDIR%\rtdx\include;%TI_TARGDIR%\rtdx\lib;%TI_CSLDIR%\include;%TI_CSLDIR%\lib;

@echo off
REM =========MSVC ENVIRONMENT ========================================================================
REM When moving this batch from host to host the DOS directory path "MICROS~2" may be incorrect.  It depends
REM on what other Microsoft tools are on your system. To determine if this is correct or not you can do
REM the following:
REM  1) CD to the "Program Files" directory
REM  2) Do "dir /X"
REM  3) Look for the DOS directory name "for Microsoft Visual Studio"
REM 
REM If you are setting up a build host then you can also cure this problem by copying the SDK directory
REM first and then the Visual Studio directory. This will preserve the ~1 and ~2 order.
REM

rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=%BLDHOST%\PROGRA~1\MICROS~2\Common

rem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=%BLDHOST%\PROGRA~1\MICROS~2\Common\msdev98

rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=%BLDHOST%\PROGRA~1\MICROS~2\VC98

rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNT

rem
echo Setting environment for using Microsoft Visual C++ tools.
rem

if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%VSCommonDir%\TOOLS\%VcOsDir%;%VSCommonDir%\TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSVCDir%\BIN";"%VSCommonDir%\TOOLS\%VcOsDir%";"%VSCommonDir%\TOOLS";"%windir%\SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%\ATL\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%INCLUDE%
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%

set VcOsDir=
set VSCommonDir=