]> CyberLeo.Net >> Repos - FreeBSD/releng/10.1.git/blob - sys/modules/vmm/Makefile
Copy stable/10@r272459 to releng/10.1 as part of
[FreeBSD/releng/10.1.git] / sys / modules / vmm / Makefile
1 # $FreeBSD$
2
3 KMOD=   vmm
4
5 SRCS=   opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h
6
7 CFLAGS+= -DVMM_KEEP_STATS -DSMP
8 CFLAGS+= -I${.CURDIR}/../../amd64/vmm
9 CFLAGS+= -I${.CURDIR}/../../amd64/vmm/io
10 CFLAGS+= -I${.CURDIR}/../../amd64/vmm/intel
11
12 # generic vmm support
13 .PATH: ${.CURDIR}/../../amd64/vmm
14 SRCS+=  vmm.c           \
15         vmm_dev.c       \
16         vmm_host.c      \
17         vmm_instruction_emul.c  \
18         vmm_ioport.c    \
19         vmm_ipi.c       \
20         vmm_lapic.c     \
21         vmm_mem.c       \
22         vmm_msr.c       \
23         vmm_stat.c      \
24         vmm_util.c      \
25         x86.c           \
26         vmm_support.S
27
28 .PATH: ${.CURDIR}/../../amd64/vmm/io
29 SRCS+=  iommu.c         \
30         ppt.c           \
31         vatpic.c        \
32         vatpit.c        \
33         vhpet.c         \
34         vioapic.c       \
35         vlapic.c
36
37 # intel-specific files
38 .PATH: ${.CURDIR}/../../amd64/vmm/intel
39 SRCS+=  ept.c           \
40         vmcs.c          \
41         vmx_msr.c       \
42         vmx.c           \
43         vtd.c
44
45 # amd-specific files
46 .PATH: ${.CURDIR}/../../amd64/vmm/amd
47 SRCS+=  amdv.c
48
49 OBJS=   vmx_support.o
50
51 CLEANFILES=     vmx_assym.s vmx_genassym.o
52
53 vmx_assym.s:    vmx_genassym.o
54 .if exists(@)
55 vmx_assym.s:    @/kern/genassym.sh
56 .endif
57         sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET}
58
59 vmx_support.o:  vmx_support.S vmx_assym.s
60         ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
61             ${.IMPSRC} -o ${.TARGET}
62
63 vmx_genassym.o: vmx_genassym.c @ machine x86
64         ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
65
66 .include <bsd.kmod.mk>