From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGSko-00011u-Om for qemu-devel@nongnu.org; Thu, 20 Feb 2014 07:29:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGSkg-0002iE-7j for qemu-devel@nongnu.org; Thu, 20 Feb 2014 07:29:26 -0500 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:52786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGSkg-0002i6-0Q for qemu-devel@nongnu.org; Thu, 20 Feb 2014 07:29:18 -0500 Received: by mail-ee0-f52.google.com with SMTP id c41so48022eek.39 for ; Thu, 20 Feb 2014 04:29:17 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 20 Feb 2014 13:28:54 +0100 Message-Id: <1392899343-5226-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1392899343-5226-1-git-send-email-pbonzini@redhat.com> References: <1392899343-5226-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 03/12] 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, famz@redhat.com, aliguori@amazon.com From: Fam Zheng 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 a95fb76..0db7031 100644 --- a/rules.mak +++ b/rules.mak @@ -22,8 +22,10 @@ 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$(