[79/81] convert gprof flags to style of rest of Makefile
diff mbox

Message ID 5cd9ff277d2a85ee3dfa68f8243f6bb0223ccddb.1249301360.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 3, 2009, 12:47 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.target |    5 +----
 configure       |    1 +
 2 files changed, 2 insertions(+), 4 deletions(-)

Patch
diff mbox

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