This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: question about gcc/g++ -M option
- From: Lin George <george4academic at yahoo dot com>
- To: John Love-Jensen <eljay at adobe dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 27 Apr 2006 05:51:08 -0700 (PDT)
- Subject: Re: question about gcc/g++ -M option
Thanks John!
The information you provided is very helpful! I am
using GNU make and I will ask further questions to GNU
make maillist. :-)
regards,
George
--- John Love-Jensen <eljay@adobe.com> wrote:
> Hi George,
>
> > 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?
>
> The -M option is used to create a dependency
> directed acyclic graph. It is
> in Makefile depedency format output of file
> prerequisites.
>
> To see how that is used in conjunction with
> Makefiles, look here:
>
>
http://www.gnu.org/software/make/manual/html_node/Automatic-Prerequisites.ht
> ml
>
> If you don't use Makefiles, for example if you are
> using Xcode projects, or
> if you use certain alternative make systems such as
> AT&T Nmake, or you
> ascertain dependencies using a truss-like mechanism,
> then you needn't bother
> with -M.
>
> HTH,
> --Eljay
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com