On Sun, 2006-03-19 at 02:23 +0000, [EMAIL PROTECTED] wrote:
> Author: jelmer
> Date: 2006-03-19 02:23:52 +0000 (Sun, 19 Mar 2006)
> New Revision: 14554
> 
> WebSVN: 
> http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14554
> 
> Log:
> Write out header dependencies. This means all C files affected will be 
> rebuilt when a header file is changed. It also means parallel builds work now.

Yay! Thanks Jelmer, this is really cool!

>  .c.d:
>       @echo "Generating dependencies for $<"
> -     @$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $<
> +     @$(CC) -M -MG -MT $(<:.c=.o) `script/cflags.pl [EMAIL PROTECTED] 
> $(CFLAGS) $< -o $@

Does this work for compilers other than gcc?

-- 
James Peach | [EMAIL PROTECTED]

Reply via email to