When using NMAKE at the command line, keep the following in mind:
- All fields are optional.
- NMAKE always looks first in the current directory for a description
file called makefile. If makefile does not exist, NMAKE uses the filename given with
the /F (specify description file) option (see Specify description file (/F)).
Command-line syntax

>>-nmake--+---------+--+------------------+--+---------+-------->
'-options-' '-macrodefinitions-' '-targets-'
>--+--------------+--------------------------------------------><
'-/F--filename-'
- options
- Specifies options that modify NMAKE's actions.
- macrodefinitions
- Lists macro definitions for NMAKE to use. Macro definitions
that contain spaces must be enclosed by double quotation marks.
- targets
- Specifies the names of one or more target files to build.
If you do not list any targets, NMAKE builds the first target in
the description file.
- /F filename
- Gives the name of the description file where you specify file
dependencies and which commands to execute when a file is out-of-date.
The following example:
nmake /s "program = flash" sort.exe search.exe
- Invokes NMAKE with the /s option
- Defines a macro, assigning the string "flash" to
the macro "program"
- Specifies two targets: sort.exe and search.exe
By default, NMAKE uses the file named makefile as the description file.
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)