Option Chinese document in nmake

Source: Internet
Author: User

Command line options

Nmake receives selection items to control nmake sessions. The selected item is case-insensitive and can start with a slash (/) or A hyphen (-).

You can specify some options in the makefile or tools. ini file.


/
Force nmake to generate all detected target files, and even the target files do not expire compared to their dependent files. This option does not force nmake to generate irrelevant target files.


/B
Tell nmake to execute dependency check even if the timestamp is the same. Most operating systems allocate a timestamp within two seconds. If your command is executed very quickly, nmake may think that a file is up-to-date but not actually.

This option may cause unnecessary generation steps, but we recommend that you add this option when running nmake on a very fast system.

/C
Disable nmake output by default, including non-fatal nmake errors or warning messages, timestamps, and nmake copyright information. If both/C and/K options are specified,/C will disable warning output from/K options.

/D
Print Information about nmake during execution. This information is scattered in nmake's default output and printed to the screen. Nmake prints the timestamp of each target file and dependent File Detected During the generation process, and reports a message when a target file does not exist.

The printed information of the dependent file of the target file is staggered before the target file. The/d and/P options are useful when debugging A makefile.

Set or clear the/D option for some makefile files. You can use it! For more information about the cmdswitches commands, see section "preprocessing commands" On page 572.

/E
Reference environment variables to overwrite macro definitions in makefile. See the macro definition section on page 550.

/F filename
Specifies the name of The makefile. You can add spaces or tabs before the file name. If you specify a break (-) before the file name, nmake will get the makefile input from the standard input device.

(Press F6 or Ctrl + Z to end the keyboard input .) Nmake can accept multiple makefile files, which are separated by/F.

If you ignore the/F option, nmake searches for files in the current directory named makefile (without a suffix) and uses it as the makefile input.

If the makefile does not exist, nmake uses the default derivation rule to generate the target in the command line.


/Helf
Call the quick help function. If nmake cannot locate the help document but can help quickly, it displays a brief summary of the nmake command line statement.

/I
Ignore exit of all commands listed in makefileCode. Nmake executes the entire MAKEFILE file even if an error occurs. If you only want to ignore some commands or exit code of some makefiles, you can add a hyphen (-) or use the. Ignore command before the command.

For more information, see the command modifier section on page 1 and the dot command section on page 3. You can use the/I option to set or clear some makefiles! Cmdsitches command. For details, see the "pre-processing commands" section on page 1.

You can use the/K option to ignore errors unrelated to the generation process. /I override/K option, if both options are set at the same time.


/K
If a command is interrupted due to an error. By default, nmake stops if any command returns any non-zero exit value.

If this option is specified, nmake stops executing the block containing this command when a command returns an unexpected exit value. Nmake does not attempt to generate target files that depend on the command results. Instead, nmake reports a warning and continues to generate other targets.

If the/K option is specified and the generation process is not completed, nmake returns an exit value of 1. This is different from the/I option. The/I option completely ignores the exit code. /I override/K options if they are specified at the same time. /C option disable/K option report warning information.


/M
Swap nmake to disk to save extended or extended MS-dos. By default, nmake leaves space in the low-address memory for command execution by switching itself to the extended memory (if there is enough space) or the Expanded Memory (if there is not enough extended memory, but there is enough extended memory) or disk.

The/M option allows nmake to ignore any Scalable Memory or expandable memory, instead of switching itself to the disk.

/N
Displays but does not execute commands that will be executed during the generation process. This option is useful for debugging makefile and viewing the target expiration time.

You can use this option to set or clear some/n options of the MAKEFILE file! Cmdswitches command. For more information, see the "pre-processing commands" section on page 572.

/Nologo
Nmake copyright information cannot be output.

/P
Before starting the nmake session, print the nmake information to the standard output device, including all macro definitions, derivation rules, Target description blocks, and. suffixes lists.

If the/P option is specified but the MAKEFILE file is not provided or the command line target is provided, nmake prints the information but does not report an error. The/P and/d options are useful for highly makefile files.

/Q
Check the timestamp of the target file that may be updated during the generation process, but do not execute the generation process. If the target file is the latest, nmake returns a zero value. If any target file expires, nmake returns a non-zero value.

Only the preprocessing commands in the makefile file will be executed. This option is useful when calling nmake in a batch file.


/R
Clear the. suffixes list and ignore the derivation rules and macro definitions that are defined in the tools. Int file or predefined.

/S
Disable the output of all commands. To disable the output of a command, use the @ command modifier or the. Silent command. For more information, see the command modifier section on page 1 and the dot command section on page 3.

To set or clear A Part Of The makefile/s option, you can use it! Cmdswitches command. For more information, see the "pre-processing commands" section on page 572.

/T
Modify the timestamp of the command line target (or the first target file in the makefile if no target is specified in the command line) to the current time and execute the pre-processing command but not the generation process.

The content of the target file has not changed.

/V

All macros are inherited when recursion occurs. By default, only macro definitions defined in the command line and environment variables are inherited when nmake calls recursion. This option makes all macro definitions valid during nmake call recursion. For details, see the inherited macro definition section on page 1.


/X filename
Send all nmake errors to filename. filename can be a file or a device.

You can add spaces or tabs before filename. If you add a hyphen (-) before filename, nmake sends its error output to the standard output device.

By default, nmake sends errors to standard error streams. This option does not affect the error output sent to the standard error stream generated by the makefile command.

/?
Print a brief summary of the nmake command line syntax and exit the operating system.

Article from: http://blog.csdn.net/sunshineboyleng/article/details/5022237

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.