From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKQAX-0001yl-8X for qemu-devel@nongnu.org; Fri, 13 Sep 2013 06:00:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKQAR-0004Qt-9G for qemu-devel@nongnu.org; Fri, 13 Sep 2013 06:00:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKQAR-0004Ql-0l for qemu-devel@nongnu.org; Fri, 13 Sep 2013 05:59:59 -0400 From: Fam Zheng Date: Fri, 13 Sep 2013 17:59:11 +0800 Message-Id: <1379066356-14986-4-git-send-email-famz@redhat.com> In-Reply-To: <1379066356-14986-1-git-send-email-famz@redhat.com> References: <1379066356-14986-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v9 3/8] 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, alex@alex.org.uk, 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 0c5125d..355c275 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$(