Share via


Makefile.new File

The Build utility uses a generic make file that is named Makefile.new. This file contains the macro definitions that the Sources file uses. The Build utility processes the Makefile.new file by using an INCLUDE directive that is contained within the Makefile.def file.

Makefile.new specifies the flags that are passed to the compiler and linker. These settings are customized for the Microsoft Windows Driver Kit (WDK) build environment. Makefile.new also sets the appropriate header and library include paths, compiler names and switches, and linker switches that are defined in Makefile.def, and starts the NMAKE utility (Nmake.exe).

Note  Do not change Makefile.new. Flag settings that are specific to a project should be specified either in the Sources or Makefile.inc files.

The Makefile.new file resembles the Ntwin32.mak file, which is supplied with the Windows SDK and is used to build Microsoft Win32 applications.

Using the Build utility along with the Makefile.def and Makefile.new files removes the question about which compiler switches are required, which arguments that the linker requires, and so on. By adding appropriate macro definitions to the Sources file, you can control build options in a platform-independent manner.

Under the root installation directory of the Windows Driver Kit (WDK), Makefile.new is stored in the bin subdirectory.

Caution   Do not change Makefile.new or any of the other files in the WDK's \bin directory. If you have driver-specific make file requirements, put them in Makefile.inc instead

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011