Makefile 576 字节
Newer Older
A
Avi Kivity 已提交
1 2 3 4
#
# Makefile for Kernel-based Virtual Machine module
#

5 6
common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
                coalesced_mmio.o)
7 8 9
ifeq ($(CONFIG_KVM_TRACE),y)
common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
endif
10

11
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
12

S
Sheng Yang 已提交
13 14
kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
	i8254.o
B
Ben-Ami Yassour 已提交
15 16 17
ifeq ($(CONFIG_DMAR),y)
kvm-objs += vtd.o
endif
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