From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDdlU-00042M-L9 for qemu-devel@nongnu.org; Mon, 17 Sep 2012 12:01:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDdlL-0000iQ-0K for qemu-devel@nongnu.org; Mon, 17 Sep 2012 12:01:40 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:54240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDdlK-0000Hr-Q6 for qemu-devel@nongnu.org; Mon, 17 Sep 2012 12:01:30 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp12so9799681pbb.4 for ; Mon, 17 Sep 2012 09:01:30 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 17 Sep 2012 18:00:49 +0200 Message-Id: <1347897649-23236-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1347897649-23236-1-git-send-email-pbonzini@redhat.com> References: <1347897649-23236-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [RFC PATCH 10/10] build: do not build TCG files if TCG is disabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Only cpu-exec.c is left in, even though in principle it is TCG-specific. Removing it involves moving large parts of code from exec.c to there (and perhaps the other way, too). Signed-off-by: Paolo Bonzini --- Makefile.target | 5 +++-- target-i386/Makefile.objs | 7 ++++--- 2 file modificati, 7 inserzioni(+), 5 rimozioni(-) diff --git a/Makefile.target b/Makefile.target index d9d54b8..2f1687a 100644 --- a/Makefile.target +++ b/Makefile.target @@ -69,8 +69,9 @@ all: $(PROGS) stap ######################################################### # cpu emulator library -obj-y = exec.o translate-all.o cpu-exec.o -obj-y += tcg/tcg.o tcg/optimize.o +obj-y = exec.o cpu-exec.o +obj-$(CONFIG_TCG) += tcg/tcg.o tcg/optimize.o +obj-$(CONFIG_TCG) += translate-all.o obj-$(CONFIG_TCG_INTERPRETER) += tci.o obj-y += fpu/softfloat.o obj-y += disas.o diff --git a/target-i386/Makefile.objs b/target-i386/Makefile.objs index c1d4f05..b6cb055 100644 --- a/target-i386/Makefile.objs +++ b/target-i386/Makefile.objs @@ -1,6 +1,7 @@ -obj-y += translate.o helper.o cpu.o -obj-y += excp_helper.o fpu_helper.o cc_helper.o int_helper.o svm_helper.o -obj-y += smm_helper.o misc_helper.o mem_helper.o seg_helper.o +obj-y += helper.o cpu.o +obj-$(CONFIG_TCG) += translate.o +obj-$(CONFIG_TCG) += excp_helper.o fpu_helper.o cc_helper.o int_helper.o svm_helper.o +obj-$(CONFIG_TCG) += smm_helper.o misc_helper.o mem_helper.o seg_helper.o obj-$(CONFIG_SOFTMMU) += machine.o arch_memory_mapping.o arch_dump.o obj-$(CONFIG_KVM) += kvm.o hyperv.o obj-$(CONFIG_NO_KVM) += kvm-stub.o -- 1.7.12