From patchwork Mon Aug 3 12:47:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 30583 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 3E42DB6F2B for ; Tue, 4 Aug 2009 01:56:07 +1000 (EST) Received: from localhost ([127.0.0.1]:55691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXztK-0000TP-AS for incoming@patchwork.ozlabs.org; Mon, 03 Aug 2009 11:56:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXx0D-00043Q-KJ for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXx09-00041e-Sq for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:57 -0400 Received: from [199.232.76.173] (port=51749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXx09-00041Q-KS for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:53 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40933) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXx08-0007Gw-VL for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:50:53 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n73CoqXL007536; Mon, 3 Aug 2009 08:50:52 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n73Copaj027090; Mon, 3 Aug 2009 08:50:51 -0400 Received: from localhost.localdomain (vpn-12-117.rdu.redhat.com [10.11.12.117]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n73Cn8NN009715; Mon, 3 Aug 2009 08:50:50 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 3 Aug 2009 14:47:10 +0200 Message-Id: <5cd9ff277d2a85ee3dfa68f8243f6bb0223ccddb.1249301360.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 79/81] convert gprof flags to style of rest of Makefile X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- Makefile.target | 5 +---- configure | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile.target b/Makefile.target index 8ae889e..79fc5a7 100644 --- a/Makefile.target +++ b/Makefile.target @@ -285,10 +285,7 @@ obj-sh4-y += ide.o obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o obj-m68k-y += m68k-semi.o dummy_m68k.o -# profiling code -ifdef TARGET_GPROF -main.o vl.o: QEMU_CFLAGS+=-p -endif +main.o vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) diff --git a/configure b/configure index 6ea79f8..d325c25 100755 --- a/configure +++ b/configure @@ -2167,6 +2167,7 @@ if test "$gprof" = "yes" ; then fi if test "$target_softmmu" = "yes" ; then ldflags="-p $ldflags" + echo "GPROF_CFLAGS=-p" >> $config_mak fi fi