Share via


Source Code Configuration Files

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

Source code configuration files give the Build tool (Build.exe) information about the following:

  • The directories to traverse
  • The C and Microsoft® Visual C++® files to compile
  • The type of binary file to build

Based on this information, the Build tool builds the source code in a directory and specified subdirectories.

The following table shows the source code configuration file types.

File type Description

Dirs File

Identifies subdirectories that contain source code.

Makefile File

Contains the variables needed to compile and link the source code.

Module-Definition File

Contains the statements defining an executable or dynamic-link library.

Sources File

Contains the macro variables needed to build source code.

The Build tool traverses a directory tree, searching for dirs and then sources files.

Dirs files specify the sources files that contain

  • Source code to be built
  • Information on additional subdirectories that contain sources files

When the Build tool locates a sources file in the current directory, it calls the Nmake tool (Nmake.exe), which does one of the following:

  • Compiles the specified C or C++ sources file
  • Links an object module, according to the linking rules contained in the makefile file

For more information about the Build tool, see Build Tool. For more information about the Nmake tool, see Nmake Tool.

See Also

Concepts

OS Design Configuration Files
Run-Time Image Configuration Files
Source Code Configuration File Macros
Run-Time Image Files

Other Resources

OS Localization