]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/modules/vmm/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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_ipi.c       \
19         vmm_lapic.c     \
20         vmm_mem.c       \
21         vmm_msr.c       \
22         vmm_stat.c      \
23         vmm_util.c      \
24         x86.c           \
25         vmm_support.S
26
27 .PATH: ${.CURDIR}/../../amd64/vmm/io
28 SRCS+=  iommu.c         \
29         ppt.c           \
30         vdev.c          \
31         vlapic.c
32
33 # intel-specific files
34 .PATH: ${.CURDIR}/../../amd64/vmm/intel
35 SRCS+=  ept.c           \
36         vmcs.c          \
37         vmx_msr.c       \
38         vmx.c           \
39         vtd.c
40
41 # amd-specific files
42 .PATH: ${.CURDIR}/../../amd64/vmm/amd
43 SRCS+=  amdv.c
44
45 OBJS=   vmx_support.o
46
47 CLEANFILES=     vmx_assym.s vmx_genassym.o
48
49 vmx_assym.s:    vmx_genassym.o
50 .if exists(@)
51 vmx_assym.s:    @/kern/genassym.sh
52 .endif
53         sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET}
54
55 vmx_support.o:  vmx_support.S vmx_assym.s
56         ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
57             ${.IMPSRC} -o ${.TARGET}
58
59 vmx_genassym.o: vmx_genassym.c @ machine x86
60         ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
61
62 .include <bsd.kmod.mk>