NMAKE Help (nmake.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Precedence Among Macro Definitions
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     If the same macro name is defined in more than one place, NMAKE
     uses the definition with the highest precedence. The precedence
     from highest to lowest is as follows:
 
       1. A macro defined on the command line
 
       2. A macro defined in a makefile or include file
 
       3. An inherited environment-variable macro
 
       4. A macro defined in the TOOLS.INI file
 
       5. A predefined macro, such as CC and AS
 
     The /E option causes macros inherited from environment variables
     to override macros with the same name in the makefile. The !UNDEF
     directive in a makefile overrides a command-line macro definition.
     See: /E Option
          !UNDEF Directive
                                    -♦-