Resources | Resources |



Defining build targets

The first step when creating a makefile using the make.d rules is to identify all of the items which are to be built by this makefile.

As an enhancement over standard make files, the make system has rules to generate and use a dependency tree for each source file. This saves having to list each include dependency for each source file. Since the make rules also map an object file to a source file, in most cases it is sufficient to specify only the object file in the list of dependencies. The source file dependency generation tool for C and C++ is called cdep.

VPATH and vpath are used to add search paths for the object to source mapping rules. For more information on VPATH, see the