svn commit: samba r14554 - in branches/SAMBA_4_0/source: .
build/smb_build heimdal_build include lib lib/messaging lib/netif
lib/registry lib/samba3 lib/tdr ntvfs/posix smbd
James Peach
jpeach at samba.org
Sun Mar 19 06:18:16 GMT 2006
On Sun, 2006-03-19 at 02:23 +0000, jelmer at samba.org 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 $@` $(CFLAGS) $< -o $@
Does this work for compilers other than gcc?
--
James Peach | jpeach at samba.org
More information about the samba-cvs
mailing list