Received: from eggs.gnu.org ([2001:4830:134:3::10]:41535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCkgE-0000yh-9F for qemu-devel@nongnu.org; Mon, 10 Feb 2014 01:49:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCkg6-0005c8-Mv for qemu-devel@nongnu.org; Mon, 10 Feb 2014 01:49:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCkg6-0005c3-ER for qemu-devel@nongnu.org; Mon, 10 Feb 2014 01:49:14 -0500 From: Fam Zheng Date: Mon, 10 Feb 2014 14:48:53 +0800 Message-Id: <1392014941-15505-4-git-send-email-famz@redhat.com> In-Reply-To: <1392014941-15505-1-git-send-email-famz@redhat.com> References: <1392014941-15505-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v20 03/11] rules.mak: allow per object cflags and libs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, mjt@tls.msk.ru, alex@alex.org.uk, pbonzini@redhat.com, mrezanin@redhat.com, vilanova@ac.upc.edu, rth@twiddle.net Adds extract-libs in LINK to expand any "per object libs", the syntax to define such a libs options is like: foo.o-libs := $(CURL_LIBS) in block/Makefile.objs. Similarly, foo.o-cflags := $(FOO_CFLAGS) is also supported. "foo.o" must be listed in a nested var (e.g. common-obj-y) to make the option variables effective. Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- rules.mak | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/rules.mak b/rules.mak index 7d27602..9398268 100644 --- a/rules.mak +++ b/rules.mak @@ -21,15 +21,17 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d # Same as -I$(SRC_PATH) -I., but for the nested source/object directories QEMU_INCLUDES += -I$(