Received: from eggs.gnu.org ([2001:4830:134:3::10]:38388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFS7y-0001Rr-Mo for qemu-devel@nongnu.org; Mon, 17 Feb 2014 12:37:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFS7C-0001Yz-NS for qemu-devel@nongnu.org; Mon, 17 Feb 2014 12:37:10 -0500 Received: from mail-ea0-x233.google.com ([2a00:1450:4013:c01::233]:62692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFS7C-0001Yk-GY for qemu-devel@nongnu.org; Mon, 17 Feb 2014 12:36:22 -0500 Received: by mail-ea0-f179.google.com with SMTP id q10so6760686ead.10 for ; Mon, 17 Feb 2014 09:36:21 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 17 Feb 2014 18:35:50 +0100 Message-Id: <1392658559-32506-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1392658559-32506-1-git-send-email-pbonzini@redhat.com> References: <1392658559-32506-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 files 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$(