This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automatic dependency complexity
- To: tromey at cygnus dot com
- Subject: Re: Automatic dependency complexity
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sun, 6 Dec 1998 10:13:56 +0100
- CC: egcs at cygnus dot com
- References: <13928.7003.472716.144280.cygnus.egcs@tiamat.golden-gryphon.com> <871zme769q.fsf@cygnus.com>
> 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