Make Utility Macros and Inference Rules in TOOLS.INI

You can place macros or inference rules in your TOOLS.INI file. The Make utility looks for the TOOLS.INI file first in the current directory and then in the directory indicated by the INIT environment variable.

When the Make utility finds a TOOLS.INI file, it looks for the tag nmake

You can place macros and inference rules below this tag in the same format you would use in a makefile.

Example of Macros in TOOLS.INI

[nmake]
CFLAGS=/ss /ms /Gd-
.C.OBJ:
  $(CC) -c $(CFLAGS) $*.C

These lines in the TOOLS.INI file:

Precedence Rules
If a macro or inference rule is defined in both the TOOLS.INI file and the makefile, the definition in the makefile takes precedence. Also, if you use the /r option, the TOOLS.INI file is ignored.



Makefiles


Define a Make Utility Macro
Substitution in a Macro


Predefined Make Utility Macros
Make Utility Command Options