Previous Next

MAKEDLL

The MAKEDLL macro controls whether any actual linking occurs.

Generally, the build process is a two-pass build. In the first pass, the Build utility compiles all the source files, and creates import libraries and component libraries. In the second pass, it links everything against those libraries. The default, which directs the Build utility to make the second pass, is as follows:

MAKEDLL=1

Typically, you do not set this value. You might do a test in your make file to instruct the Build utility::

IF MAKEDLL=1
do things that you want to do on the second pass of the build 

A more frequent use of this macro is to run NMAKE from the command line to run the compile and to link without running the Build utility:

nmake MAKEDLL=1

The Build utility will complete the compile operation and the link in one step without running the Build utility. This works because the Build utility is only required to determine the dependencies and call NMAKE. This method works when:

See Also

NOLINK