Makefile revision 276386
1221828Sgrehan# $FreeBSD: stable/10/sys/modules/vmm/Makefile 276386 2014-12-30 00:00:42Z neel $ 2221828Sgrehan 3221828SgrehanKMOD= vmm 4221828Sgrehan 5276386SneelSRCS= opt_acpi.h opt_ddb.h device_if.h bus_if.h pci_if.h vmx_assym.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_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 \ 30268891Sjhb vatpic.c \ 31268891Sjhb vatpit.c \ 32261088Sjhb vhpet.c \ 33261088Sjhb vioapic.c \ 34221828Sgrehan vlapic.c 35221828Sgrehan 36221828Sgrehan# intel-specific files 37221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/intel 38221828SgrehanSRCS+= ept.c \ 39221828Sgrehan vmcs.c \ 40221828Sgrehan vmx_msr.c \ 41276386Sneel vmx_support.S \ 42221828Sgrehan vmx.c \ 43221828Sgrehan vtd.c 44221828Sgrehan 45221828Sgrehan# amd-specific files 46221828Sgrehan.PATH: ${.CURDIR}/../../amd64/vmm/amd 47221828SgrehanSRCS+= amdv.c 48221828Sgrehan 49276386SneelCLEANFILES= vmx_assym.h vmx_genassym.o 50221828Sgrehan 51276386Sneelvmx_assym.h: vmx_genassym.o 52221828Sgrehan.if exists(@) 53276386Sneelvmx_assym.h: @/kern/genassym.sh 54221828Sgrehan.endif 55221828Sgrehan sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 56221828Sgrehan 57276386Sneelvmx_support.o: 58221828Sgrehan ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 59221828Sgrehan ${.IMPSRC} -o ${.TARGET} 60221828Sgrehan 61276386Sneelvmx_genassym.o: 62221828Sgrehan ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 63221828Sgrehan 64221828Sgrehan.include <bsd.kmod.mk> 65