Configuring Command-Line Tools. NXP CodeWarrior Development Studio
Advertisement
Advertisement
Chapter 2
Using Build Tools on the Command Line
CodeWarrior build tools may be invoked from the command-line. These command-line tools operate almost identically to their counterparts in an integrated development environment (IDE). CodeWarrior command-line compilers and assemblers translate source code files into object code files. CodeWarrior command-line linkers then combine one or more object code files to produce an executable image file, ready to load and execute on the target platform. Each command-line tool has options that you configure when you invoke the tool.
•
Configuring Command-Line Tools
•
•
•
2.1 Configuring Command-Line Tools
This chapter explains:
•
Setting CodeWarrior Environment Variables
•
Setting the PATH Environment Variable
2.1.1 Setting CodeWarrior Environment Variables
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
Freescale Semiconductor, Inc.
41
Configuring Command-Line Tools
Use environment variables on the host system to specify to the CodeWarrior command line tools where to find CodeWarrior files for compiling and linking. The table below describes these environment variables.
Table 2-1. Environment variables for CodeWarrior command-line tools
The environment variable...
CWFolder
MWCEABIPPCIncludes
MWEABIPPCLibraries
MWEABIPPCLibraryFiles
specifies this information
CodeWarrior installation path on the host system.
Directories on the host system for system header files for the
CodeWarrior compiler.
Directories on the host system for system libraries for the
CodeWarrior linker.
List of library names to be linked.
A system header file is a header file that is enclosed with the "<" and ">" characters in include directives. For example
#include <stdlib.h> /* stdlib.h system header. */
Typically, you define the
MWCEABIPPCIncludes
and
MWEABIPPCLibraries
environment variables to refer to the header file and library search paths in the subdirectories of your
CodeWarrior software.
To specify more than one directory for the
MWCEABIPPCIncludes
and
MWEABIPPCLibraries variables, use the conventional separator for your host operating system command-line shell.
CWFolder
NOTE
environment variable specifies the CodeWarrior installation path on a host system. Verify the CodeWarrior installation path on the host system before setting the
CWFolder environment variable.
Listing 2-1. Setting environment variables in Microsoft® Windows® operating systems
rem Use ; to separate directory paths set CWFolder=Replace this text with the CodeWarrior installation path on the host system.
set MWCEABIPPCIncludes=%CWFolder%\AIOP_Support\ewl\EWL_C\include;%CWFolder%\AIOP_Support\ewl
\EWL_C++\include;%CWFolder%\PA_Support\ewl\EWL_Runtime\Runtime_AIOP\Include set MWEABIPPCLibraries=%CWFolder%\AIOP_Support\ewl\lib
2.1.2 Setting the PATH Environment Variable
42
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
Freescale Semiconductor, Inc.
Download
Advertisement