From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZvT-0004aX-Af for qemu-devel@nongnu.org; Wed, 01 May 2013 12:30:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXZvR-0007Gp-VS for qemu-devel@nongnu.org; Wed, 01 May 2013 12:30:39 -0400 Received: from mail-ye0-f169.google.com ([209.85.213.169]:39319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZvR-0007Gj-RY for qemu-devel@nongnu.org; Wed, 01 May 2013 12:30:37 -0400 Received: by mail-ye0-f169.google.com with SMTP id q1so301147yen.28 for ; Wed, 01 May 2013 09:30:37 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 1 May 2013 18:30:15 +0200 Message-Id: <1367425815-15083-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 1.5] win32: fix compilation again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jacob Kroon While commit c02817e5bfbb27955cac970019e6670dc427bc41 fixed compilation without an installed libtool, moving the dependencies to rules.mak does not work because the version-*-y variables are not defined yet. Building in a clean tree thus fails. Revert the commit and remove the dummy /bin/false assignment to LIBTOOL. This makes the build work, at the price of slightly worse errors when there are Makefile bugs. Signed-off-by: Paolo Bonzini --- Makefile | 1 + rules.mak | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f91f3b0..7dc0204 100644 --- a/Makefile +++ b/Makefile @@ -172,6 +172,7 @@ version.lo: $(SRC_PATH)/version.rc config-host.h version-obj-$(CONFIG_WIN32) += version.o version-lobj-$(CONFIG_WIN32) += version.lo +Makefile: $(version-obj-y) $(version-lobj-y) ###################################################################### # Build libraries diff --git a/rules.mak b/rules.mak index 197a9d7..d3145b4 100644 --- a/rules.mak +++ b/rules.mak @@ -22,15 +22,11 @@ QEMU_CFLAGS += -I$(/dev/null 2>&1 && echo OK), $2, $3) -VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.sh +VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.sh %.rc set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) # find-in-path -- 1.8.2