Makefile revision 245678
1# $FreeBSD: head/sys/modules/vmm/Makefile 245678 2013-01-20 03:42:49Z neel $ 2 3KMOD= vmm 4 5SRCS= 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 vdev.c \ 31 vlapic.c 32 33# intel-specific files 34.PATH: ${.CURDIR}/../../amd64/vmm/intel 35SRCS+= 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 43SRCS+= amdv.c 44 45OBJS= vmx_support.o 46 47CLEANFILES= vmx_assym.s vmx_genassym.o 48 49vmx_assym.s: vmx_genassym.o 50.if exists(@) 51vmx_assym.s: @/kern/genassym.sh 52.endif 53 sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 54 55vmx_support.o: vmx_support.S vmx_assym.s 56 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 57 ${.IMPSRC} -o ${.TARGET} 58 59vmx_genassym.o: vmx_genassym.c @ machine x86 60 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 61 62.include <bsd.kmod.mk> 63