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