[Home]
[Search]
[CTG]
[RTL]
[IDDE]
Last update Jul 1, 2004
Producing dependency lists with MAKEDEP
The MAKEDEP utility produces dependency lists that you can use in
your makefiles. MAKEDEP commands have the following form:
makedep [-d] {-ipath} [-m] [-s] [-t] {-xexclude} filenames ...
where:
- -d
- Prints debugging output
- -ipath
- Specifies a search path for header files
- -m
- Include files that are referenced in #include
statements, but do not actually exist. By
default, MAKEDEP only includes files that exist.
- -s
- Doesn't list system include files as
dependencies (that is, header files enclosed in
less-than and greater-than signs, such as
#include <stdio.h>)
- -t
- Do not include path names in generated targets
- -xexclude
- Specifies a directory to exclude from the search
path. Any path of which this directory is a part
will be excluded.
- filenames ...
- A list of filenames, separated by spaces, for
which dependency lists are to be created
Redirecting the output of MAKEDEP to a file can be used
as the starting point for a makefile:
makedep -s menu.cpp wbase.cpp > makefile
The makefile looks like this:
menu.obj : wbase.h menu.h menu.cpp
wbase.obj : wbase.h wbase.cpp
Copyright © 1995-2004 Digital Mars. All Rights Reserved.