1# $FreeBSD$ 2 3KMOD= vmm 4 5SRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h 6 7CFLAGS+= -DVMM_KEEP_STATS -DSMP 8CFLAGS+= -I${.CURDIR}/../../amd64/vmm 9CFLAGS+= -I${.CURDIR}/../../amd64/vmm/io 10CFLAGS+= -I${.CURDIR}/../../amd64/vmm/intel 11 12# generic vmm support 13.PATH: ${.CURDIR}/../../amd64/vmm 14SRCS+= 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 28SRCS+= iommu.c \ 29 ppt.c \ 30 vhpet.c \ 31 vioapic.c \ 32 vlapic.c 33 34# intel-specific files 35.PATH: ${.CURDIR}/../../amd64/vmm/intel 36SRCS+= ept.c \ 37 vmcs.c \ 38 vmx_msr.c \ 39 vmx.c \ 40 vtd.c 41 42# amd-specific files 43.PATH: ${.CURDIR}/../../amd64/vmm/amd 44SRCS+= amdv.c 45 46OBJS= vmx_support.o 47 48CLEANFILES= vmx_assym.s vmx_genassym.o 49 50vmx_assym.s: vmx_genassym.o 51.if exists(@) 52vmx_assym.s: @/kern/genassym.sh 53.endif 54 sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 55 56vmx_support.o: vmx_support.S vmx_assym.s 57 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 58 ${.IMPSRC} -o ${.TARGET} 59 60vmx_genassym.o: vmx_genassym.c @ machine x86 61 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 62 63.include <bsd.kmod.mk> 64