help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dependency issue


From: Kristof Provost
Subject: Re: dependency issue
Date: Wed, 25 Aug 2010 17:08:59 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On 2010-08-25 22:57:51 (+0800), Lynn Lin <address@hidden> wrote:
> On Wed, Aug 25, 2010 at 10:47 PM, Kristof Provost <address@hidden> wrote:
> > On 2010-08-25 19:35:27 (+0800), Lynn Lin <address@hidden> wrote:
> >> All,
> >>    I use the following rules to generate dependency automatically
> >>
> >> %.P : %.cpp
> >>         $(QUIET_MM)rm -f $@; \
> >>         $(CPP) -M $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES)  $< > 
> >> address@hidden; \
> >
> > Try with the -MP option, rather than the -M option.
> seems good,however it shows
> 
> cc1plus: error: to generate dependencies you must specify either -M or -MM
> 
My appollogies, it seems you'll have to combine the two options, so -M
-MP together.

Regards,
Kristof



reply via email to

[Prev in Thread] Current Thread [Next in Thread]