Re: [PATCH] compile: don't place built object files in $(srcdir), ever ...

Eric Blake <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 01/02/2015 11:49 AM, Stefano Lattarini wrote:
> ... even when a source file is specified as '$(srdir)/foo.c' or
> '$(top_srcdir)/bar.c'. And ditto for dependency-tracking makefile
> fragments (those under '.deps' directories).

> +++ b/NEWS

> @@ -88,6 +88,21 @@ New in 1.16:
>      using a private target that is only meant to bootstrap the required
>      makefile fragments.
>  
> +  - The 'subdir-object' option no longer causes object files corresponding
> +    to source files specified with an explicit '$(srcdir)' component to be
> +    placed in the source tree rather than in the build tree.
> +
> +    For example, if Makefile.am contains:
> +
> +        AUTOMAKE_OPTIONS = subdir-objects
> +        foo_SOURCES = $(srcdir)/foo.c $(srcdir)/s/bar.c $(top_srcdir)/baz.c
> +
> +    then "make all" will create 'foo.o' and 's/bar.o' $(builddir) rather

s|'s/bar.o'|'s/bar.o' in|

> +    than in $(srcdir), and 'baz.o' in $(top_builddir) rather than in
> +    $(top_srcdir).
> +
> +    This was the second part of automake bug#13928.
> +
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

And thanks for tackling this!

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc (application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJUpyZkAAoJEKeha0olJ0Nqi0QH+gLH44p1VCqiVmQ5NltMUqfh
RydswVBJiy/aZ6sN/oldfJWYCUWYczPE7ySFjbzKCYt2Oa2FiNjLPmVgOma/nCIO
JWITr1vGUE0xcKREtN8G8w0w5yKkXavUBD/AxIS4sWGp5b2YCWrhsFtrwaoreSln
nK0ei46iZkgTgcT+ENripR4teLzP7nuOMYN3B8kQEOBfz9a/xmXj1G6ey3+rD+oF
ODhu3s4RCOlDyURM1yuT8GrIoj34up5gWHYym44xO2AaDTg14wR57cfVbR/xAvY9
LQuhpd/Qjh2X4wKcMSEc60FgQgV7ABSKfNkNkTbFxduXeopEsJboX6dhmPAI4JA=
=9q4O
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.