blob: b43c4efafe80133cab8ab26a4bbabc9e5fac263a [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 \
Xiantao Zhang3de42dc2008-10-06 13:48:45 +08006 coalesced_mmio.o irq_comm.o)
Feng(Eric) Liud4c9ff22008-04-10 08:47:53 -04007ifeq ($(CONFIG_KVM_TRACE),y)
8common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
9endif
Joerg Roedel19de40a2008-12-03 14:43:34 +010010ifeq ($(CONFIG_IOMMU_API),y)
Joerg Roedelc4fa3862008-11-26 15:51:19 +010011common-objs += $(addprefix ../../../virt/kvm/, iommu.o)
Zhang xiantao371c01b2008-09-11 13:19:32 +080012endif
Avi Kivityedf88412007-12-16 11:02:48 +020013
Zhang Xiantao0eb8f492007-12-17 14:16:14 +080014EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
Avi Kivityedf88412007-12-16 11:02:48 +020015
Sheng Yang78376992008-01-28 05:10:22 +080016kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
Marcelo Tosattid3c7b772009-02-23 10:57:41 -030017 i8254.o timer.o
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