a23 How Variables Get Their Values Contents|Index|Previous|Next

How Variables Get Their Values

Variables can get values in several different ways:

make00090000.gif You can specify an overriding value when you run make. See Overriding Variables.

make00090000.gif You can specify a value in the makefile, either with an assignment (see Setting Variables) or with a verbatim definition (see Defining Variables Verbatim).

make00090000.gif Variables in the environment become make variables. See Variables from the Environment.

make00090000.gif Several automatic variables are given new values for each rule. Each of these has a single conventional use. See Automatic Variables.

make00090000.gif Several variables have constant initial values. See Variables Used by Implicit Rules.

0