Received: from eggs.gnu.org ([208.118.235.92]:41246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjWoP-0003IM-0R for qemu-devel@nongnu.org; Fri, 14 Dec 2012 10:04:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjWoN-0002Rx-Fq for qemu-devel@nongnu.org; Fri, 14 Dec 2012 10:04:28 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:48328 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjWoN-0002RA-5y for qemu-devel@nongnu.org; Fri, 14 Dec 2012 10:04:27 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1936665411.23874741.1355472843936.JavaMail.root@redhat.com> <87sj784ugp.fsf@fimbulvetr.bsc.es> <50CB2E9C.4010600@redhat.com> Date: Fri, 14 Dec 2012 16:04:22 +0100 In-Reply-To: <50CB2E9C.4010600@redhat.com> (Paolo Bonzini's message of "Fri, 14 Dec 2012 14:50:20 +0100") Message-ID: <877gokekuh.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] build: Use separate makefile for "trace/" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini writes: > Il 14/12/2012 14:46, Llu=C3=ADs Vilanova ha scritto: >>>> The thing I like about automake is that it provides a clear set of var= s to >>>> manage the per-dir builds, thanks to using a per-dir $(MAKE); but I'm >>>> not sure how the per-target build would be managed (except by having a >>>> separate configure+make for each of them). >>>> Yes, that would be it. >>=20 >> I'd certainly love to see something along those lines for the sake of ma= kefile >> simplicity. > QEMU is complex enough that I'm not really sure what Automake would buy. I'm just talking about having a build system (automake or not) that uses so= me "standard" set of vars to establish what to do, plus per-directory make to simplify management of per-directory vars (if ever needed). >>> > Even an autoconf conversion probably would have to use separate confi= gure >>> > scripts for the global project and for each target. >> If you're willing to pay for a complete recompilation for each target yo= u can >> just have a single configure file. > That's not the problem. The problem is that Autoconf does not lend well > to the style of the QEMU build system, with many subparts that are > enabled/disabled at configure time. Well, for that you have conditional compilation. The linux style (obj-y) is easier to understand, but AFAIR automake provided broader features. >> Ah, I know that one in gcc=20 >>=20 >> -Wl,--whole-archive foo.a -Wl,--no-whole-archive > Really in ld (that's what -Wl does) and not very portable... I know, but I had no idea about the portability issues. Again, don't take it as an intent to start some autotools flame, I was just curious :) Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth