1# 2# Makefile for Kernel-based Virtual Machine module 3# 4 5common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ 6 coalesced_mmio.o) 7ifeq ($(CONFIG_KVM_TRACE),y) 8common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o) 9endif 10ifeq ($(CONFIG_DMAR),y) 11common-objs += $(addprefix ../../../virt/kvm/, vtd.o) 12endif 13 14EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm 15 16kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ 17 i8254.o 18obj-$(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 23