提交 93a0dba7 编写于 作者: A aliguori

Consolidate library creation (Avi Kivity)

Put archive utility (ar) invocations into a rule, and have it generate
quiet output by default.
Signed-off-by: NAvi Kivity <avi@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6381 c046a42c-6fe2-441c-8c8c-71466251a162
上级 4f188f88
...@@ -174,16 +174,12 @@ curses.o: curses.c keymaps.c curses_keys.h ...@@ -174,16 +174,12 @@ curses.o: curses.c keymaps.c curses_keys.h
bt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS) bt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS)
libqemu_common.a: $(OBJS) libqemu_common.a: $(OBJS)
rm -f $@
$(AR) rcs $@ $(OBJS)
####################################################################### #######################################################################
# USER_OBJS is code used by qemu userspace emulation # USER_OBJS is code used by qemu userspace emulation
USER_OBJS=cutils.o cache-utils.o USER_OBJS=cutils.o cache-utils.o
libqemu_user.a: $(USER_OBJS) libqemu_user.a: $(USER_OBJS)
rm -f $@
$(AR) rcs $@ $(USER_OBJS)
###################################################################### ######################################################################
......
...@@ -211,8 +211,6 @@ endif ...@@ -211,8 +211,6 @@ endif
# libqemu # libqemu
libqemu.a: $(LIBOBJS) libqemu.a: $(LIBOBJS)
rm -f $@
$(AR) rcs $@ $(LIBOBJS)
translate.o: translate.c cpu.h translate.o: translate.c cpu.h
......
...@@ -13,4 +13,7 @@ LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@) ...@@ -13,4 +13,7 @@ LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@)
%$(EXESUF): %.o %$(EXESUF): %.o
$(LINK) $(LINK)
%.a:
$(call quiet-command,rm -f $@ && $(AR) rcs $@ $^,AR $@)
quiet-command = $(if $(V),$1,@echo $2 && $1) quiet-command = $(if $(V),$1,@echo $2 && $1)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册