This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
question about gcc/g++ -M option
- From: Lin George <george4academic at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 27 Apr 2006 04:58:50 -0700 (PDT)
- Subject: question about gcc/g++ -M option
Hello everyone,
What is the function of gcc/g++ -M option? I have read
through the man page but still can not understand.
Could anyone show me an example please?
Linux man page
--------------------
Instead of outputting the result of preprocessing,
output a rule suitable for make describing the
dependencies of the main source file. The preprocessor
outputs one make rule containing the object file name
for that source file, a colon, and the names of all
the included files, including those coming from
-include or -imacros command line options.
--------------------
thanks in advance,
George
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com