Share via


Running NMAKE

Home Page (Projects)Overview (NMAKE Reference)How Do I... Topics (Projects)

The syntax for NMAKE is:

NMAKE [option...] [macros...] [targets...] [@commandfile...]

NMAKE builds only specified targets or, if none is specified, the first target in the makefile. The first makefile target can be a pseudotarget that builds other targets. NMAKE uses makefiles specified with /F; if /F is not specified, it uses the Makefile file in the current directory. If no makefile is specified, it uses inference rules to build command-line targets.

The commandfile text file contains command-line input. Other input can precede or follow @commandfile. A path is permitted. In commandfile, line breaks are treated as spaces. Enclose macro definitions in quotation marks if they contain spaces.

What do you want to know more about?

NMAKE options

Tools.ini and NMAKE

Exit codes from NMAKE