Re: [patch/rfc] Generate makefile dependencies

Ian Lance Taylor
2004-03-08T18:16:50Z

Andrew Cagney <cagney@gnu.org> writes:

> > BTW, your comment about running automake to update deps in BFD is
> > actually incorrect. You run 'make dep-am', which IIRC seds Makefile.am
> > and maye regenerates Makefile.in; the dependencies aren't managed by
> > automake. Recent versions of automake do have top-notch dependency
> > support though.
>
> It appears to eventually run "gcc -MM" ... :-(

Assuming you are talking about 'make dep-am' in the binutils, that is
irrelevant.

'make dep-am' is run by a binutils maintainer, not by an ordinary
user. It does happen to run gcc -MM, so the binutils maintainer is
required to have gcc installed. However, the result is the correct
dependencies for any compiler, and those dependencies are then present
in the Makefile for any user, regardless of what compiler they use.

Ian