Makefile revision 276386
1# $FreeBSD: stable/10/sys/modules/vmm/Makefile 276386 2014-12-30 00:00:42Z neel $ 2 3KMOD= vmm 4 5SRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h vmx_assym.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_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 vatpic.c \ 31 vatpit.c \ 32 vhpet.c \ 33 vioapic.c \ 34 vlapic.c 35 36# intel-specific files 37.PATH: ${.CURDIR}/../../amd64/vmm/intel 38SRCS+= ept.c \ 39 vmcs.c \ 40 vmx_msr.c \ 41 vmx_support.S \ 42 vmx.c \ 43 vtd.c 44 45# amd-specific files 46.PATH: ${.CURDIR}/../../amd64/vmm/amd 47SRCS+= amdv.c 48 49CLEANFILES= vmx_assym.h vmx_genassym.o 50 51vmx_assym.h: vmx_genassym.o 52.if exists(@) 53vmx_assym.h: @/kern/genassym.sh 54.endif 55 sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 56 57vmx_support.o: 58 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 59 ${.IMPSRC} -o ${.TARGET} 60 61vmx_genassym.o: 62 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 63 64.include <bsd.kmod.mk> 65