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_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 29SRCS+= 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 39SRCS+= 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 47SRCS+= amdv.c 48 49OBJS= vmx_support.o 50 51CLEANFILES= vmx_assym.s vmx_genassym.o 52 53vmx_assym.s: vmx_genassym.o 54.if exists(@) 55vmx_assym.s: @/kern/genassym.sh 56.endif 57 sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 58 59vmx_support.o: vmx_support.S vmx_assym.s 60 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 61 ${.IMPSRC} -o ${.TARGET} 62 63vmx_genassym.o: vmx_genassym.c @ machine x86 64 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 65 66.include <bsd.kmod.mk> 67