2 # Makefile for Kernel-based Virtual Machine module
5 common-objs
= $(addprefix ..
/..
/..
/virt
/kvm
/, kvm_main.o ioapic.o \
6 coalesced_mmio.o irq_comm.o
)
7 ifeq ($(CONFIG_KVM_TRACE
),y
)
8 common-objs
+= $(addprefix ..
/..
/..
/virt
/kvm
/, kvm_trace.o
)
10 ifeq ($(CONFIG_IOMMU_API
),y
)
11 common-objs
+= $(addprefix ..
/..
/..
/virt
/kvm
/, iommu.o
)
14 EXTRA_CFLAGS
+= -Ivirt
/kvm
-Iarch
/x86
/kvm
16 kvm-objs
:= $(common-objs
) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
18 obj-
$(CONFIG_KVM
) += kvm.o
19 kvm-intel-objs
= vmx.o
20 obj-
$(CONFIG_KVM_INTEL
) += kvm-intel.o
22 obj-
$(CONFIG_KVM_AMD
) += kvm-amd.o