qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6381] Consolidate library creation (Avi Kivity)
Date: Wed, 21 Jan 2009 18:13:16 +0000	[thread overview]
Message-ID: <E1LPhZk-0002lx-SI@cvs.savannah.gnu.org> (raw)

Revision: 6381
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6381
Author:   aliguori
Date:     2009-01-21 18:13:16 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Consolidate library creation (Avi Kivity)

Put archive utility (ar) invocations into a rule, and have it generate
quiet output by default.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/Makefile
    trunk/Makefile.target
    trunk/rules.mak

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2009-01-21 18:13:09 UTC (rev 6380)
+++ trunk/Makefile	2009-01-21 18:13:16 UTC (rev 6381)
@@ -174,16 +174,12 @@
 bt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS)
 
 libqemu_common.a: $(OBJS)
-	rm -f $@ 
-	$(AR) rcs $@ $(OBJS)
 
 #######################################################################
 # USER_OBJS is code used by qemu userspace emulation
 USER_OBJS=cutils.o  cache-utils.o
 
 libqemu_user.a: $(USER_OBJS)
-	rm -f $@ 
-	$(AR) rcs $@ $(USER_OBJS)
 
 ######################################################################
 

Modified: trunk/Makefile.target
===================================================================
--- trunk/Makefile.target	2009-01-21 18:13:09 UTC (rev 6380)
+++ trunk/Makefile.target	2009-01-21 18:13:16 UTC (rev 6381)
@@ -211,8 +211,6 @@
 # libqemu
 
 libqemu.a: $(LIBOBJS)
-	rm -f $@
-	$(AR) rcs $@ $(LIBOBJS)
 
 translate.o: translate.c cpu.h
 

Modified: trunk/rules.mak
===================================================================
--- trunk/rules.mak	2009-01-21 18:13:09 UTC (rev 6380)
+++ trunk/rules.mak	2009-01-21 18:13:16 UTC (rev 6381)
@@ -13,4 +13,7 @@
 %$(EXESUF): %.o
 	$(LINK)
 
+%.a:
+	$(call quiet-command,rm -f $@ && $(AR) rcs $@ $^,AR $@)
+
 quiet-command = $(if $(V),$1,@echo $2 && $1)

                 reply	other threads:[~2009-01-21 18:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LPhZk-0002lx-SI@cvs.savannah.gnu.org \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).