Makefile revision 261088
1221828Sgrehan# $FreeBSD: stable/10/sys/modules/vmm/Makefile 261088 2014-01-23 20:21:39Z jhb $ 2221828Sgrehan 3221828SgrehanKMOD= vmm 4221828Sgrehan 5254596SuqsSRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h 6221828Sgrehan 7221914SjhbCFLAGS+= -DVMM_KEEP_STATS -DSMP 8254596SuqsCFLAGS+= -I${.CURDIR}/../../amd64/vmm 9254596SuqsCFLAGS+= -I${.CURDIR}/../../amd64/vmm/io 10221828SgrehanCFLAGS+= -I${.CURDIR}/../../amd64/vmm/intel 11221828Sgrehan 12221828Sgrehan# generic vmm support 13221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm 14221828SgrehanSRCS+= vmm.c \ 15221828Sgrehan vmm_dev.c \ 16242275Sneel vmm_host.c \ 17240941Sneel vmm_instruction_emul.c \ 18221828Sgrehan vmm_ipi.c \ 19221828Sgrehan vmm_lapic.c \ 20221828Sgrehan vmm_mem.c \ 21221828Sgrehan vmm_msr.c \ 22221828Sgrehan vmm_stat.c \ 23221828Sgrehan vmm_util.c \ 24221828Sgrehan x86.c \ 25221828Sgrehan vmm_support.S 26221828Sgrehan 27221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/io 28221828SgrehanSRCS+= iommu.c \ 29221828Sgrehan ppt.c \ 30261088Sjhb vhpet.c \ 31261088Sjhb vioapic.c \ 32221828Sgrehan vlapic.c 33221828Sgrehan 34221828Sgrehan# intel-specific files 35221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/intel 36221828SgrehanSRCS+= ept.c \ 37221828Sgrehan vmcs.c \ 38221828Sgrehan vmx_msr.c \ 39221828Sgrehan vmx.c \ 40221828Sgrehan vtd.c 41221828Sgrehan 42221828Sgrehan# amd-specific files 43221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/amd 44221828SgrehanSRCS+= amdv.c 45221828Sgrehan 46221828SgrehanOBJS= vmx_support.o 47221828Sgrehan 48221828SgrehanCLEANFILES= vmx_assym.s vmx_genassym.o 49221828Sgrehan 50221828Sgrehanvmx_assym.s: vmx_genassym.o 51221828Sgrehan.if exists(@) 52221828Sgrehanvmx_assym.s: @/kern/genassym.sh 53221828Sgrehan.endif 54221828Sgrehan sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 55221828Sgrehan 56221828Sgrehanvmx_support.o: vmx_support.S vmx_assym.s 57221828Sgrehan ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 58221828Sgrehan ${.IMPSRC} -o ${.TARGET} 59221828Sgrehan 60221914Sjhbvmx_genassym.o: vmx_genassym.c @ machine x86 61221828Sgrehan ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 62221828Sgrehan 63221828Sgrehan.include <bsd.kmod.mk> 64