From patchwork Tue Jun 18 17:34:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 252390 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 278CF2C02A5 for ; Wed, 19 Jun 2013 03:34:51 +1000 (EST) Received: from localhost ([::1]:58050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uozns-0000jW-8V for incoming@patchwork.ozlabs.org; Tue, 18 Jun 2013 13:34:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoznN-0000cM-8d for qemu-devel@nongnu.org; Tue, 18 Jun 2013 13:34:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoznM-0004gg-68 for qemu-devel@nongnu.org; Tue, 18 Jun 2013 13:34:17 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:59575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoznL-0004cv-VG for qemu-devel@nongnu.org; Tue, 18 Jun 2013 13:34:16 -0400 Received: from gandalf.tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by isrv.corpit.ru (Postfix) with ESMTP id 0ABD141A5B; Tue, 18 Jun 2013 21:34:07 +0400 (MSK) Received: by gandalf.tls.msk.ru (Postfix, from userid 1000) id 6BBE851B; Tue, 18 Jun 2013 21:34:06 +0400 (MSK) From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 18 Jun 2013 21:34:02 +0400 Message-Id: <1371576844-28743-3-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1371576844-28743-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1371576844-28743-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: Michael Tokarev Subject: [Qemu-devel] [RFC PATCH 2/4] build-sys: allow object-specific libraries to be used to link executables X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org When linking final executables consiting of various object files foo.o, one may define foo.libs variable to hold libraries needed to be linked with foo.o. This way, we may specify dependencies inside the makefile fragments where corresponding objects are defined. Signed-off-by: Michael Tokarev --- rules.mak | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rules.mak b/rules.mak index a6bb4f1..69764b9 100644 --- a/rules.mak +++ b/rules.mak @@ -22,10 +22,14 @@ QEMU_INCLUDES += -I$(