Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Build
Build Utility Files
 Sources file

  Switch on low bandwidth view
Windows Driver Kit: Driver Development Tools
Sources file

You describe Build utility products in a file named "sources" that resides in each source code subdirectory.

The Sources file contains a series of macro definitions that are recognized by the Build utility. For more information, see Using Macros and Environment Variables.

The !include Directive and the SOURCES_USED Macro

If you use the !include preprocessing directive to include some file in a Sources file or in Makefile.inc, you must use the SOURCES_USED macro to list the included files.

The files listed in SOURCES_USED are treated as a dependency for regenerating the _objects.mac file. This file is in the root of the dependency tree, and contains all of the dependencies for building the current directory. Adding these file names to the SOURCES_USED macro assures that the Build utility will correctly detect whether _objects.mac needs to be updated.

There are several preprocessing directives available, such as !include, !if, and !endif. See the topic "Makefile Preprocessing Directives" in the "NMAKE Reference" section of the MSDN for more information.

For information about creating a Sources file, see Utilizing a Sources file Template.


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker