Although the Build utility has a great number of features — and some of them are rather obscure — it is very easy to begin using this utility to build useful binaries.
To build a single DDK sample driver
E:\DDK> cd src E:\DDK\src> cd wdm\AVStream\avssamp E:\DDK\src\wdm\AVStream\avssamp> build -cZ
The -cZ option creates a clean build of the samples (by deleting all preexisting .obj files). It also inhibits the dependency checking of source and header files. For other available options, see Build Utility Command-Line Options and Using Macros and Environment Variables. The sources file lets the Build utility know what to build.
To build all samples at once
E:\DDK> cd src E:\DDK\src> build -cZ
The dirs files in the sample tree instruct the Build utility on how to recurse through the entire tree.