Makefile revision 268891
1268576Sjilles# $FreeBSD: stable/10/sys/modules/vmm/Makefile 268891 2014-07-19 22:06:46Z jhb $ 2268576Sjilles 3268576SjillesKMOD= vmm 4268576Sjilles 5268576SjillesSRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h 6268576Sjilles 7268576SjillesCFLAGS+= -DVMM_KEEP_STATS -DSMP 8268576SjillesCFLAGS+= -I${.CURDIR}/../../amd64/vmm 9268576SjillesCFLAGS+= -I${.CURDIR}/../../amd64/vmm/io 10268576SjillesCFLAGS+= -I${.CURDIR}/../../amd64/vmm/intel 11268576Sjilles 12268576Sjilles# generic vmm support 13268576Sjilles.PATH: ${.CURDIR}/../../amd64/vmm 14268576SjillesSRCS+= 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