@@ -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
@@ -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
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 <pbonzini@redhat.com> --- Makefile.target | 5 +++-- target-i386/Makefile.objs | 7 ++++--- 2 file modificati, 7 inserzioni(+), 5 rimozioni(-)