Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Kernel-based Virtual Machine module |
| 3 | # |
| 4 | |
Laurent Vivier | 542472b | 2008-05-30 16:05:55 +0200 | [diff] [blame] | 5 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ |
Xiantao Zhang | 3de42dc | 2008-10-06 13:48:45 +0800 | [diff] [blame] | 6 | coalesced_mmio.o irq_comm.o) |
Feng(Eric) Liu | d4c9ff2 | 2008-04-10 08:47:53 -0400 | [diff] [blame] | 7 | ifeq ($(CONFIG_KVM_TRACE),y) |
| 8 | common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o) |
| 9 | endif |
Joerg Roedel | 19de40a | 2008-12-03 14:43:34 +0100 | [diff] [blame] | 10 | ifeq ($(CONFIG_IOMMU_API),y) |
Joerg Roedel | c4fa386 | 2008-11-26 15:51:19 +0100 | [diff] [blame] | 11 | common-objs += $(addprefix ../../../virt/kvm/, iommu.o) |
Zhang xiantao | 371c01b | 2008-09-11 13:19:32 +0800 | [diff] [blame] | 12 | endif |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 13 | |
Zhang Xiantao | 0eb8f49 | 2007-12-17 14:16:14 +0800 | [diff] [blame] | 14 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 15 | |
Sheng Yang | 7837699 | 2008-01-28 05:10:22 +0800 | [diff] [blame] | 16 | kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ |
Marcelo Tosatti | d3c7b77 | 2009-02-23 10:57:41 -0300 | [diff] [blame] | 17 | i8254.o timer.o |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 18 | obj-$(CONFIG_KVM) += kvm.o |
| 19 | kvm-intel-objs = vmx.o |
| 20 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o |
| 21 | kvm-amd-objs = svm.o |
| 22 | obj-$(CONFIG_KVM_AMD) += kvm-amd.o |