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

Re: [bluetooth-dev] bt headers in dependencies ?



Gordon McNutt wrote:

> Matthias Fuchs wrote:
> 
>> Hello,
>> 
>> I noticed when compiling the stack again and again that it would be nice
>> to have the header files of the bt stack in the dependencies of the
>> Makefile(s). If I change something in a header (let's say btdebug.h), I
>> always have to say 'make clean' before a 'make'. If the headers are in
>> the dependencies, rebuilding would be nothing but a 'make'.
>> 
>> As I am not a makefile expert, I would be glad if someone else could do
>> this :-)
>> 
>> Matthias
>> -
>> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
>> the body of a message to majordomo@xxxxxxx.com
> 
> 
> I don't have time right now, but here's how to do it.
> 1. CFLAGS += -MD
> 2. sinclude *.d (or, I guess, -include *.d is the "new" way to do it). Put
> this at the END of the Makefile!
> 
> --gmcnutt
> 
> -
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
> the body of a message to majordomo@xxxxxxx.com

I just checked this change into sourceforge.

Marcus

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com