[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bluetooth-dev] bt headers in dependencies ?
Matthias Fuchs wrote:
> 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 :-)
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
> the body of a message to email@example.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!
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to firstname.lastname@example.org