blob: 3072b17447ab80a6ed6314891f01351cf82709ed [file] [log] [blame]
Avi Kivityedf88412007-12-16 11:02:48 +02001#
2# Makefile for Kernel-based Virtual Machine module
3#
4
Laurent Vivier542472b2008-05-30 16:05:55 +02005common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
6 coalesced_mmio.o)
Feng(Eric) Liud4c9ff22008-04-10 08:47:53 -04007ifeq ($(CONFIG_KVM_TRACE),y)
8common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
9endif
Avi Kivityedf88412007-12-16 11:02:48 +020010
Zhang Xiantao0eb8f492007-12-17 14:16:14 +080011EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
Avi Kivityedf88412007-12-16 11:02:48 +020012
Sheng Yang78376992008-01-28 05:10:22 +080013kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
14 i8254.o
Ben-Ami Yassour62c476c2008-09-14 03:48:28 +030015ifeq ($(CONFIG_DMAR),y)
16kvm-objs += vtd.o
17endif
Avi Kivityedf88412007-12-16 11:02:48 +020018obj-$(CONFIG_KVM) += kvm.o
19kvm-intel-objs = vmx.o
20obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
21kvm-amd-objs = svm.o
22obj-$(CONFIG_KVM_AMD) += kvm-amd.o