* [Qemu-devel] [6381] Consolidate library creation (Avi Kivity)
@ 2009-01-21 18:13 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-01-21 18:13 UTC (permalink / raw)
To: qemu-devel
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-21 18:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 18:13 [Qemu-devel] [6381] Consolidate library creation (Avi Kivity) Anthony Liguori
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).