Conditional Expressions in Makefiles

The expression used with the !IF directive can consist of integer constants, string constants, or exit codes returned by programs. Integer constants can use the C unary operators for numerical negation (-), one's complement (~), and logical negation (!). A list of other operators is also included below.

Notes:

Here is a list of other operators that can be used with !IF:

Operator Description
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
& Bitwise AND
| Bitwise OR
^^ Bitwise XOR
&& Logical AND
|| Logical OR
<< Left shift
>> Right shift
== Equality
!= Inequality
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to



 Directives in Makefiles


Supply input to the Make utility from the Command Line
Supply input to the Make utility from a Response File