On Jun 26, 4:34 pm, Juha Nieminen <nos...@thanks.invalid> wrote:
> Lionel B wrote:
> > Correct me if I'm wrong, but I think the -MM flag isn't that
> > clever: it simply chugs out dependencies *as found in the
> > source file*.
> How else can a source file depend on another?
If I understood him correctly, he's worried about logical
dependencies. His problem isn't to find out who includes what,
but who should include what.
(For the rest, most Unix compilers I know have some mechanism
for automatically generating the dependencies, and every
compiler I've ever seen has a possibility of generating
preprocessor output with #line directives... after which, a
simple shell script can be used to get a list of included
files.)
--
James Kanze (GABI Software) email:
Conseils en informatique orient閑 objet/
Beratung in objektorientierter Datenverarbeitung
9 place S閙ard, 78210 St.-Cyr-l'蒫ole, France, +33 (0)1 30 23 00 34
|