We recommend using Visual Studio 2017

Makefile Preprocessing

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Makefile Preprocessing.

You can control the NMAKE session by using preprocessing directives and expressions. Preprocessing instructions can be placed in the makefile or in Tools.ini. Using directives, you can conditionally process your makefile, display error messages, include other makefiles, undefine a macro, and turn certain options on or off.

Makefile preprocessing directives

Expressions in makefile preprocessing

NMAKE Reference

Show: