-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephan Beal wrote:
> -----------
> The -MP option instructs gcc to include phony targets
for each
> prerequisite. This completely eliminates the messy
five-part sed
> expression in our make-depend function. It seems that
the automake
> developers who invented the phony target technique
caused this option
> to be added to gcc.
> -----------
>
> that topic is discussed starting on in section 10.3.1,
page 110.
In the printed book it's page 153.
It's worth noting that the language above is very sloppy.
The -MP
option does not output a 'phony' target (which has a special
meaning in
GNU Make), but simply outputs a rule with no commands for
the target.
For example, if foo.c include foo.h then gcc -MM -MP foo.c
emits:
foo.o: foo.c foo.h
foo.h:
John.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGg7mVLphrp73n/hARAp7NAKCSJHG8JdVO+DNCfHZscfPrLz8jnACf
Z8br
wyp//uS02daxoq1sTnoyJas=
=FOuY
-----END PGP SIGNATURE-----
_______________________________________________
Help-make mailing list
Help-make gnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
|