Browse Source

tcg: add the CONFIG_TCG into Makefiles

Add the CONFIG_TCG for frontend and backend's files in the related
Makefiles.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Yang Zhong 8 years ago
parent
commit
e4b4b6428c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      Makefile.target
  2. 1 1
      accel/Makefile.objs

+ 2 - 2
Makefile.target

@@ -90,8 +90,8 @@ all: $(PROGS) stap
 # cpu emulator library
 # cpu emulator library
 obj-y += exec.o
 obj-y += exec.o
 obj-y += accel/
 obj-y += accel/
-obj-y += tcg/tcg.o tcg/tcg-op.o tcg/optimize.o
-obj-y += tcg/tcg-common.o tcg/tcg-runtime.o
+obj-$(CONFIG_TCG) += tcg/tcg.o tcg/tcg-op.o tcg/optimize.o
+obj-$(CONFIG_TCG) += tcg/tcg-common.o tcg/tcg-runtime.o
 obj-$(CONFIG_TCG_INTERPRETER) += tcg/tci.o
 obj-$(CONFIG_TCG_INTERPRETER) += tcg/tci.o
 obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o
 obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o
 obj-y += fpu/softfloat.o
 obj-y += fpu/softfloat.o

+ 1 - 1
accel/Makefile.objs

@@ -1,4 +1,4 @@
 obj-$(CONFIG_SOFTMMU) += accel.o
 obj-$(CONFIG_SOFTMMU) += accel.o
 obj-y += kvm/
 obj-y += kvm/
-obj-y += tcg/
+obj-$(CONFIG_TCG) += tcg/
 obj-y += stubs/
 obj-y += stubs/