aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 18:13:16 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 18:13:16 +0000
commit93a0dba7ea7968ad558b225fce8d4b6527308b3f (patch)
tree95d3ca00d77eb3614df106350e5980baaa3f573d /rules.mak
parent4f188f88874830c1fdca6144938ac0db1cbc540a (diff)
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> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6381 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
index 818c5effb0..a4955da9f3 100644
--- a/rules.mak
+++ b/rules.mak
@@ -13,4 +13,7 @@ LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@)
%$(EXESUF): %.o
$(LINK)
+%.a:
+ $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^,AR $@)
+
quiet-command = $(if $(V),$1,@echo $2 && $1)