On Wed, Aug 25, 2010 at 11:08 PM, Kristof Provost <[email protected]> wrote:
> On 2010-08-25 22:57:51 (+0800), Lynn Lin <[email protected]> wrote:
>> On Wed, Aug 25, 2010 at 10:47 PM, Kristof Provost <[email protected]> wrote:
>> > On 2010-08-25 19:35:27 (+0800), Lynn Lin <[email protected]> wrote:
>> >> All,
>> >>    I use the following rules to generate dependency automatically
>> >>
>> >> %.P : %.cpp
>> >>         $(QUIET_MM)rm -f $@; \
>> >>         $(CPP) -M $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES)  $< > $...@.$$$$; \
>> >
>> > 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.
appreciate your help very much! It works

>
> Regards,
> Kristof
>

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to