From: Avi Kivity <a...@redhat.com>

Signed-off-by: Avi Kivity <a...@redhat.com>

diff --git a/Makefile.target b/Makefile.target
index f89a9ec..68c0c94 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -599,7 +599,7 @@ endif
 ifdef CONFIG_KVM_KERNEL_INC
 CFLAGS += -I $(CONFIG_KVM_KERNEL_INC)
 LIBS += -lkvm
-DEPLIBS += ../libkvm/libkvm.a
+DEPLIBS += libkvm.a
 endif
 
 ifdef CONFIG_VNC_TLS
@@ -817,6 +817,14 @@ $(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) 
$(CURSES_LIBS) $(BRLAPI_LIBS) $(
 $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a $(DEPLIBS)
        $(LINK)
 
+FORCE:
+
+libkvm.a: FORCE
+       $(MAKE) -C ../kvm/libkvm
+       if ! cmp -s libkvm.a ../kvm/libkvm/libkvm.a; then \
+          cp ../kvm/libkvm/libkvm.a . ; \
+       fi
+
 endif # !CONFIG_USER_ONLY
 
 gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to