Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Kernel-based Virtual Machine module |
| 3 | # |
| 4 | |
Zhang Xiantao | 0eb8f49 | 2007-12-17 14:16:14 +0800 | [diff] [blame] | 5 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o) |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 6 | |
Zhang Xiantao | 0eb8f49 | 2007-12-17 14:16:14 +0800 | [diff] [blame] | 7 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 8 | |
Sheng Yang | 7837699 | 2008-01-28 05:10:22 +0800 | [diff] [blame] | 9 | kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ |
| 10 | i8254.o |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 11 | obj-$(CONFIG_KVM) += kvm.o |
| 12 | kvm-intel-objs = vmx.o |
| 13 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o |
| 14 | kvm-amd-objs = svm.o |
| 15 | obj-$(CONFIG_KVM_AMD) += kvm-amd.o |