Makefile 638 字节
Newer Older
A
Avi Kivity 已提交
1 2 3 4
#
# 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 8 9
ifeq ($(CONFIG_KVM_TRACE),y)
common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
endif
J
Joerg Roedel 已提交
10
ifeq ($(CONFIG_IOMMU_API),y)
J
Joerg Roedel 已提交
11
common-objs += $(addprefix ../../../virt/kvm/, iommu.o)
12
endif
13

14
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
15

S
Sheng Yang 已提交
16
kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
17
	i8254.o timer.o
A
Avi Kivity 已提交
18 19 20 21 22
obj-$(CONFIG_KVM) += kvm.o
kvm-intel-objs = vmx.o
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
kvm-amd-objs = svm.o
obj-$(CONFIG_KVM_AMD) += kvm-amd.o