public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* dmake, GNU make, gcc, and auto-dependencies
@ 1999-12-06  4:43 Stuart Summerville
  1999-12-06  7:19 ` Paul D. Smith
  1999-12-31 22:24 ` Stuart Summerville
  0 siblings, 2 replies; 10+ messages in thread
From: Stuart Summerville @ 1999-12-06  4:43 UTC (permalink / raw)
  To: help-gcc

Hi there,

I'm trying to get auto dependencies working amongst gnu make (V3.76 or
so), dmake (4) and gcc (ver?). The gnu make manual (at www.gnu.org)
suggests creating a pattern rule that will create a .d makefile
(containing dependencies for that file) for each source file, & then
"including" that .d file into the main makefile before the source is
built.

Question: How does one stop 'make' from including the .d files if
they're not built yet? For a small 1 file test project (could it be
smaller?), I include the .d file, but its either an old one, or isn't
even built yet.

Another question: The gcc manpage states that the -MD switch will
generate the corresponding .d file, *and* compile the source file. In
doing so, does the contents of the .d file not affect the compilation
of the source file? If not, does that not put the auto-generation of
the dependency rule one step behind in the compilation process? ie.
Shouldn't the generation of the .d file be done in one step, for
subsequent use by make in determining whether to compile the source?

Thanks for any help,

sTu.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-12-31 22:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-06  4:43 dmake, GNU make, gcc, and auto-dependencies Stuart Summerville
1999-12-06  7:19 ` Paul D. Smith
1999-12-06 16:28   ` Stuart Summerville
1999-12-06 16:37     ` Stuart Summerville
1999-12-06 20:31       ` Paul D. Smith
1999-12-31 22:24         ` Paul D. Smith
1999-12-31 22:24       ` Stuart Summerville
1999-12-31 22:24     ` Stuart Summerville
1999-12-31 22:24   ` Paul D. Smith
1999-12-31 22:24 ` Stuart Summerville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).