[PATCH][SAMBA4] allow separate source and build directories

Stefan (metze) Metzmacher metze at samba.org
Thu Mar 29 07:11:42 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Peach schrieb:
> Hi all,
> 
> Attached is my patch to allow separate build and source directories for
> building Samba 4 updated to the Samba4 build system of a few days ago.
> Note that this changes only the build, not the test suite.
> 
> The use case for this is a build script along the lines of this:

Hi James,

Would it be possible if you commit that step by step.
Basicly go through the patch and decide for each hunk if it's possible
to commit it alone with out breaking something. ( I assume 5-7 commits
would be fine here)

about the $*.c vs. $< I'd like to use somthing like this:

C_SOURCE_FILE = $<

# Run the configured compiler
COMPILE = $(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` \
     $(CFLAGS) $(PICFLAG) -c $(C_SOURCEILE) -o $@


and in the build/smb_build/makefile.pm code we setup
C_SOURCE_FILE to $< if srcdir != builddir and otherwise to $*.c

so that we build fine on BSD with srcdir == builddir

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGC2aum70gjA5TCD8RAtC5AJwJe1xbXZS9lWhrE3v3H3tUhHVQ5gCgwyQ4
Y5xpMg9yEw+Qwy04B1ox3TY=
=Uw6p
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list