qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Makefile: make qemu-img dependant on config-host.h
@ 2009-10-29 18:40 Uri Lublin
  2009-11-02 18:21 ` [Qemu-devel] [PATCH] Makefile: Fix problems in parallel builds Stefan Weil
  0 siblings, 1 reply; 2+ messages in thread
From: Uri Lublin @ 2009-10-29 18:40 UTC (permalink / raw)
  To: qemu-devel

Since config-host.h is generated by the Makefile (1215c6e76),
building (only) qemu-img fails:

[user@f12-uri qemu]$ make distclean (or git clone qemu)
[user@f12-uri qemu]$ ./configure ...
[user@f12-uri qemu]$ make qemu-img
GEN  config-all-devices.mak
GEN   qemu-img-cmds.h
CC    qemu-img.o
In file included from qemu-img.c:24:
qemu-common.h:32:25: error: config-host.h: No such file or directory

Signed-off-by: Uri Lublin <uril@redhat.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 4d9908c..6f1bf87 100644
--- a/Makefile
+++ b/Makefile
@@ -200,7 +200,7 @@ libqemu_common.a: $(obj-y)

 ######################################################################

-qemu-img.o: qemu-img-cmds.h
+qemu-img.o: config-host.h qemu-img-cmds.h

 qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)

-- 
1.6.5.1

Sent from my KVM Fedora-12-Beta VM.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Qemu-devel] [PATCH] Makefile: Fix problems in parallel builds
  2009-10-29 18:40 [Qemu-devel] [PATCH] Makefile: make qemu-img dependant on config-host.h Uri Lublin
@ 2009-11-02 18:21 ` Stefan Weil
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Weil @ 2009-11-02 18:21 UTC (permalink / raw)
  To: QEMU Developers

The build-all rule used to call make recursively to
avoid problems with a wrong build order in parallel makes
(config-host.h was sometimes built too late).

Most object files depend on config-host.h, so adding
the missing prerequisites now allows to avoid
recursive calls of make and to simplify the rule for
build-all.

A similar patch from Uri Lublin which fixed the
rule for qemu-img.o is no longer needed.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c78d9ea..ae3532f 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,7 @@ config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
 
 -include config-all-devices.mak
 
-build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS)
-	$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) recurse-all,)
+build-all: $(DOCS) $(TOOLS) recurse-all
 
 config-host.h: config-host.h-timestamp
 config-host.h-timestamp: config-host.mak
@@ -207,9 +206,12 @@ bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
 
 libqemu_common.a: $(obj-y)
 
+$(obj-y): config-host.h
+
 ######################################################################
 
 qemu-img.o: qemu-img-cmds.h
+qemu-img.o qemu-nbd.o qemu-io.o: config-host.h
 
 qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)
 
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-02 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 18:40 [Qemu-devel] [PATCH] Makefile: make qemu-img dependant on config-host.h Uri Lublin
2009-11-02 18:21 ` [Qemu-devel] [PATCH] Makefile: Fix problems in parallel builds Stefan Weil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).