From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUEOI-0001Sv-94 for qemu-devel@nongnu.org; Thu, 10 Oct 2013 07:26:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUEOC-0004Zc-4M for qemu-devel@nongnu.org; Thu, 10 Oct 2013 07:26:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUEOB-0004YD-Rf for qemu-devel@nongnu.org; Thu, 10 Oct 2013 07:26:44 -0400 From: Fam Zheng Date: Thu, 10 Oct 2013 19:26:11 +0800 Message-Id: <1381404376-28156-4-git-send-email-famz@redhat.com> In-Reply-To: <1381404376-28156-1-git-send-email-famz@redhat.com> References: <1381404376-28156-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v12 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: kwolf@redhat.com, peter.maydell@linaro.org, stefanha@redhat.com, mjt@tls.msk.ru, xiawenc@linux.vnet.ibm.com, 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 01e552e..e732261 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$(