This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Automatic dependency complexity


> I know that the GNU make documentation suggests having a separate rule
> to create the `.d' files.  However, I think this isn't the best way to
> go.  Instead, I believe that dependencies should be created as a side
> effect of compilation.

YES!!!!

> First, automake wants to put the `.d' files into a subdirectory.  That
> rules out using `-MD'.  Also, in some cases, automake wants to change
> the name of the target (e.g., to "foo.o foo.lo: ...").  That suggests
> using DEPENDENCIES_OUTPUT -- but that appends to the file that is
> created (also, DEPENDENCIES_OUTPUT apparently acts like `-MM' and not
> `-M', despite the docs).  So instead automake passes `-Wp,-Md,...' to
> gcc -- the first ugliness.


To modify the name of the target, the undocumented SUNPRO_DEPENDENCIES
was helpful - I wish there was a command line option for that
functionality, though.

> What do people think of this?

Very good, I look forward to it.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]