make samba3 make -j proof

Jelmer Vernooij jelmer at samba.org
Tue Oct 10 20:24:30 GMT 2006


On Tue, 2006-10-10 at 21:30 +0200, Björn JACKE wrote:
> sitting in a train today waiting for a samba compile I thought it 
> might be quite a bit faster if it would be compilable parallelized. I 
> saw that the changes neccessary in the Makefile to make this work are 
> not very big. See attached patch. I tested the Makefile with make -j20 
> without a problem. On a dual core machine the build is in fact twice 
> as fast now with make -j2.
> 
> I needed to replace the suffix rule in the makefile with a implicit 
> pattern rule to be able to add dependencies to each resulting target. 
> VERY ancient make versions might not cope with that but all machines 
> that can cope with samba4's makefiles can cope with this, too. So I 
> thing there's nothing to worry about.
Using '%' is going to break on /a lot/ of platforms. We don't use it in
Samba4 - I think it only works with GNU make.

Cheers,

Jelmer
-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20061010/64769c8b/attachment.bin


More information about the samba-technical mailing list