From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4zU3-0006c6-1k for qemu-devel@nongnu.org; Tue, 06 Mar 2012 13:51:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4zTw-0000YT-CB for qemu-devel@nongnu.org; Tue, 06 Mar 2012 13:51:38 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:51584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4zTw-0000Xy-1l for qemu-devel@nongnu.org; Tue, 06 Mar 2012 13:51:32 -0500 Received: from gw.ac.upc.edu (gw.ac.upc.es [147.83.30.3]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id q26IpS6G024566 for ; Tue, 6 Mar 2012 19:51:28 +0100 Received: from localhost (unknown [84.88.53.92]) by gw.ac.upc.edu (Postfix) with ESMTP id 0ACB32D0017 for ; Tue, 6 Mar 2012 19:51:28 +0100 (CET) From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 06 Mar 2012 19:50:38 +0100 Message-ID: <20120306185038.16122.2427.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Current code depends on variables defined in config-host.mak before it is actually included. Signed-off-by: Llu=C3=ADs Vilanova Cc: Anthony Liguori Cc: Paul Brook --- Makefile | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 49c775b..408065e 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,7 @@ # Always point to the root of the build tree (needs GNU make). BUILD_DIR=3D$(CURDIR) =20 -GENERATED_HEADERS =3D config-host.h trace.h qemu-options.def -ifeq ($(TRACE_BACKEND),dtrace) -GENERATED_HEADERS +=3D trace-dtrace.h -endif -GENERATED_HEADERS +=3D qmp-commands.h qapi-types.h qapi-visit.h -GENERATED_SOURCES +=3D qmp-marshal.c qapi-types.c qapi-visit.c - +# All following code might depend on configuration variables ifneq ($(wildcard config-host.mak),) # Put the all: rule here so that config-host.mak can contain dependencie= s. all: build-all @@ -24,6 +18,13 @@ config-host.mak: @exit 1 endif =20 +GENERATED_HEADERS =3D config-host.h trace.h qemu-options.def +ifeq ($(TRACE_BACKEND),dtrace) +GENERATED_HEADERS +=3D trace-dtrace.h +endif +GENERATED_HEADERS +=3D qmp-commands.h qapi-types.h qapi-visit.h +GENERATED_SOURCES +=3D qmp-marshal.c qapi-types.c qapi-visit.c + # Don't try to regenerate Makefile or configure # We don't generate any of them Makefile: ;