]> git.proxmox.com Git - qemu.git/commitdiff
Only build qemu-img with softmmu targets.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 22 Sep 2007 16:49:14 +0000 (16:49 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 22 Sep 2007 16:49:14 +0000 (16:49 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3207 c046a42c-6fe2-441c-8c8c-71466251a162

Makefile
configure

index a526715889ae7c4998fd4d5afaf4ee117a66e079..c7af334131e5d2d46f38dd918f3b1747df7a5af2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,6 @@ BASE_LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
 
 CPPFLAGS += -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 LIBS=
-TOOLS=qemu-img$(EXESUF)
 ifdef CONFIG_STATIC
 BASE_LDFLAGS += -static
 endif
index 7b8ac31dcb1963121ec7c0856d8155bab2b81267..6288ac06c9977f104fc2e286732f67de1985bf98 100755 (executable)
--- a/configure
+++ b/configure
@@ -910,6 +910,12 @@ fi
 
 echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h
 
+tools=
+if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
+  tools="qemu-img\$(EXESUF) $tools"
+fi
+echo "TOOLS=$tools" >> $config_mak
+
 test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h
 
 for target in $target_list; do