Index: Makefile =================================================================== --- Makefile (revision 4795) +++ Makefile (working copy) @@ -1,6 +1,6 @@ # Makefile for QEMU. -include config-host.mak +-include config-host.mak .PHONY: all clean distclean dvi info install install-doc tar tarbin \ speed test html dvi info @@ -180,6 +180,15 @@ dyngen$(EXESUF): dyngen.c $(HOST_CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ +config-host.mak: configure +ifneq ($(wildcard config-host.mak),) + @echo $@ is out-of-date, running configure + @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh +else + @echo "Please call configure before running make!" + @exit 1 +endif + clean: # avoid old build problems by removing potentially incorrect old files rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h