Received: from eggs.gnu.org ([2001:4830:134:3::10]:53481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJNoJ-0001Jf-D6 for qemu-devel@nongnu.org; Tue, 10 Sep 2013 09:16:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJNoB-0000PK-VF for qemu-devel@nongnu.org; Tue, 10 Sep 2013 09:16:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJNoB-0000P5-Ld for qemu-devel@nongnu.org; Tue, 10 Sep 2013 09:16:43 -0400 From: Fam Zheng Date: Tue, 10 Sep 2013 21:16:21 +0800 Message-Id: <1378818985-12584-3-git-send-email-famz@redhat.com> In-Reply-To: <1378818985-12584-1-git-send-email-famz@redhat.com> References: <1378818985-12584-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [RFC PATCH v4 2/6] rule.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, mjt@tls.msk.ru, stefanha@redhat.com, pbonzini@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 a nested var (e.g. common-obj-y) to make the option variables effective. Signed-off-by: Fam Zheng --- rules.mak | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/rules.mak b/rules.mak index c08b356..6342d60 100644 --- a/rules.mak +++ b/rules.mak @@ -17,15 +17,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$(