Mail Archives: djgpp/1999/01/12/03:58:20
On 11 Jan 1999, Charles Wood wrote:
> This CPP program (source only) will check all the dependencies of all the
> cpp file and .h files in a directory. Then it will output a file called
> makefile.inc . Just do a !include in your makefile and all dependencies
> are done.
Thanks.
However, note that GCC already has a bunch of switches that cause the
compiler to emit such dependencies automatically, in the format
expected by Make. Check out the -MM switch and the ones described
near it.
The GNU Make manual even describes how to use this facility
automatically from a Makefile (see the node called "Automatic
Dependencies" in the GNU Make manual).
Also, please don't post uuencoded files. If it is a source, just post
it as text. If it's too large to post, tell people who are interested
to mail you privately.
- Raw text -