Setting the PATH Environment Variable

The PATH variable should include the paths for your CodeWarrior tools, shown in the following listing. Toolset represents the name of the folder that contains the command line tools for your build target.

Listing: Example of setting PATH

	set CWFolder=C:\Freescale\CodeWarrior
	set PATH=%PATH%;%CWFolder%\MCU\Bin;%CWFolder%\MCU\ARM_Tools\Command_Line_Tools
Listing: Setting environment variables in Linux operating systems

	# use : to separate directory paths 
	export CWFolder=\home\tools\Freescale\CodeWarrior
	export MWCIncludes=$CWFolder\MCU\ARM_EABI_Support\ewl\EWL_C\Include
	export MWCIncludes=$MWCIncludes:$CWFolder\MCU\ARM_EABI_Support\ewl\EWL_C++\Include
	export MWCIncludes=$MWCIncludes:$CWFolder\MCU\ARM_EABI_Support\ewl\EWL_C\Include\sys
	export MWLibraries=$CWFolder\MCU\ARM_EABI_Support\ewl\lib