From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPhZm-0002MF-U6 for qemu-devel@nongnu.org; Wed, 21 Jan 2009 13:13:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPhZm-0002LH-04 for qemu-devel@nongnu.org; Wed, 21 Jan 2009 13:13:18 -0500 Received: from [199.232.76.173] (port=38373 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPhZl-0002L1-OJ for qemu-devel@nongnu.org; Wed, 21 Jan 2009 13:13:17 -0500 Received: from savannah.gnu.org ([199.232.41.3]:55795 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPhZl-0003Nf-HT for qemu-devel@nongnu.org; Wed, 21 Jan 2009 13:13:17 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LPhZl-0002m2-1X for qemu-devel@nongnu.org; Wed, 21 Jan 2009 18:13:17 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LPhZk-0002lx-SI for qemu-devel@nongnu.org; Wed, 21 Jan 2009 18:13:16 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Wed, 21 Jan 2009 18:13:16 +0000 Subject: [Qemu-devel] [6381] Consolidate library creation (Avi Kivity) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Anthony Liguori 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)