Makefile revision 268891
1221828Sgrehan# $FreeBSD: stable/10/sys/modules/vmm/Makefile 268891 2014-07-19 22:06:46Z 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 \ 18268891Sjhb vmm_ioport.c \ 19221828Sgrehan vmm_ipi.c \ 20221828Sgrehan vmm_lapic.c \ 21221828Sgrehan vmm_mem.c \ 22221828Sgrehan vmm_msr.c \ 23221828Sgrehan vmm_stat.c \ 24221828Sgrehan vmm_util.c \ 25221828Sgrehan x86.c \ 26221828Sgrehan vmm_support.S 27221828Sgrehan 28221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/io 29221828SgrehanSRCS+= iommu.c \ 30221828Sgrehan ppt.c \ 31268891Sjhb vatpic.c \ 32268891Sjhb vatpit.c \ 33261088Sjhb vhpet.c \ 34261088Sjhb vioapic.c \ 35221828Sgrehan vlapic.c 36221828Sgrehan 37221828Sgrehan# intel-specific files 38221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/intel 39221828SgrehanSRCS+= ept.c \ 40221828Sgrehan vmcs.c \ 41221828Sgrehan vmx_msr.c \ 42221828Sgrehan vmx.c \ 43221828Sgrehan vtd.c 44221828Sgrehan 45221828Sgrehan# amd-specific files 46221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/amd 47221828SgrehanSRCS+= amdv.c 48221828Sgrehan 49221828SgrehanOBJS= vmx_support.o 50221828Sgrehan 51221828SgrehanCLEANFILES= vmx_assym.s vmx_genassym.o 52221828Sgrehan 53221828Sgrehanvmx_assym.s: vmx_genassym.o 54221828Sgrehan.if exists(@) 55221828Sgrehanvmx_assym.s: @/kern/genassym.sh 56221828Sgrehan.endif 57221828Sgrehan sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 58221828Sgrehan 59221828Sgrehanvmx_support.o: vmx_support.S vmx_assym.s 60221828Sgrehan ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 61221828Sgrehan ${.IMPSRC} -o ${.TARGET} 62221828Sgrehan 63221914Sjhbvmx_genassym.o: vmx_genassym.c @ machine x86 64221828Sgrehan ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 65221828Sgrehan 66221828Sgrehan.include <bsd.kmod.mk> 67