make Environment

The make environment is defined by a file containing
variable definitions and rules. Rules for compiling C, C++, and assembly language
are provided. The rules are specific to the compiler you use, and the name
of the file indicates the compiler. For example, if you are using the gcc
compiler, the make environment file is called tgt-make/gcc-devsys.mk. The file contains the variables and rules
required for building the component. The following variables are defined:

CFLAGS and CXXFLAGS
specify the compilation options for C and C++ files, respectively. The compilation
options are shown in Table 4-1.

Table 4-1 Compilation Options

Option

Possible Settings

Default Setting

WARN

WARN_ON, WARN_OFF

WARN_ON

DEBUG

DEBUG_ON, DEBUG_OFF

DEBUG_OFF

PROF

PROF_ON, PROF_OFF

PROF_OFF

OPT

OPT_ON, OPT_OFF

OPT_ON

INCLUDES and DEPENDS specify include and depend values. These variables can be overloaded
at the application level. They are grouped into the CPPFLAGS
flag, which is used in compilation and to compute dependencies. Both INCLUDES and DEPENDS can be initialized at the
application level.

LD_UCRT0, LD_SCRT0, LD_LCRT0, LD_CRTI, LD_CRTN, and LD_CRTXT are used to manage different
types of crt object files.