From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3mIw-0003Uz-2c for qemu-devel@nongnu.org; Thu, 16 Jan 2014 07:44:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3mIp-0000Pm-TY for qemu-devel@nongnu.org; Thu, 16 Jan 2014 07:44:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3mIp-0000Pg-LR for qemu-devel@nongnu.org; Thu, 16 Jan 2014 07:44:07 -0500 Message-ID: <52D7D409.6040701@redhat.com> Date: Thu, 16 Jan 2014 13:43:53 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1389775713-996-1-git-send-email-famz@redhat.com> <1389775713-996-3-git-send-email-famz@redhat.com> <20140116124004.GB10829@T430.nay.redhat.com> In-Reply-To: <20140116124004.GB10829@T430.nay.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v16 2/9] rules.mak: allow per object cflags and libs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , Peter Maydell , Stefan Hajnoczi , Michael Tokarev , QEMU Developers , Alex Bligh , Miroslav Rezanina , =?ISO-8859-1?Q?Llu=EDs_Vil?= =?ISO-8859-1?Q?anova?= , Richard Henderson Il 16/01/2014 13:40, Fam Zheng ha scritto: > , compared to > > $(obj)/foo.mo-objs := $(obj)/bar.o $(obj)/biz.o $(obj)/qux.o > > or slightly better > > $(obj)/foo.mo-objs := $(addprefix $(obj), bar.o, biz.o, qux.o) > > I've already converted block/curl.o's cflags to this, later in this series. So > yes I think this is a better syntax. Also the previous mechanism is not usable for libraries, so that we have to add them to libs_softmmu and/or libs_tools manually in the configure script. So the new scheme is easier as well as more flexible. Paolo