Makefile revision 222606
1# $FreeBSD$ 2 3# *REQUIRES* binutils 2.20.1 for VT-x instructions 4AS= /usr/local/bin/as 5LD= /usr/local/bin/ld 6CFLAGS+= -B /usr/local/bin 7 8KMOD= vmm 9 10SRCS= opt_ddb.h device_if.h bus_if.h pci_if.h 11 12CFLAGS+= -DVMM_KEEP_STATS -DSMP 13CFLAGS+= -I${.CURDIR}/../../amd64/vmm 14CFLAGS+= -I${.CURDIR}/../../amd64/vmm/io 15CFLAGS+= -I${.CURDIR}/../../amd64/vmm/intel 16 17# generic vmm support 18.PATH: ${.CURDIR}/../../amd64/vmm 19SRCS+= vmm.c \ 20 vmm_dev.c \ 21 vmm_ipi.c \ 22 vmm_lapic.c \ 23 vmm_mem.c \ 24 vmm_msr.c \ 25 vmm_stat.c \ 26 vmm_util.c \ 27 x86.c \ 28 vmm_support.S 29 30.PATH: ${.CURDIR}/../../amd64/vmm/io 31SRCS+= iommu.c \ 32 ppt.c \ 33 vdev.c \ 34 vlapic.c 35 36# intel-specific files 37.PATH: ${.CURDIR}/../../amd64/vmm/intel 38SRCS+= ept.c \ 39 vmcs.c \ 40 vmx_msr.c \ 41 vmx.c \ 42 vtd.c 43 44# amd-specific files 45.PATH: ${.CURDIR}/../../amd64/vmm/amd 46SRCS+= amdv.c 47 48OBJS= vmx_support.o 49 50CLEANFILES= vmx_assym.s vmx_genassym.o 51 52vmx_assym.s: vmx_genassym.o 53.if exists(@) 54vmx_assym.s: @/kern/genassym.sh 55.endif 56 sh @/kern/genassym.sh vmx_genassym.o > ${.TARGET} 57 58vmx_support.o: vmx_support.S vmx_assym.s 59 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 60 ${.IMPSRC} -o ${.TARGET} 61 62vmx_genassym.o: vmx_genassym.c @ machine x86 63 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC} 64 65.include <bsd.kmod.mk> 66