qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6381] Consolidate library creation (Avi Kivity)


From: Anthony Liguori
Subject: [Qemu-devel] [6381] Consolidate library creation (Avi Kivity)
Date: Wed, 21 Jan 2009 18:13:16 +0000

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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 via email to

[Prev in Thread] Current Thread [Next in Thread]