1# 2# $FreeBSD$ 3# 4 5.include <src.opts.mk> 6CFLAGS+=-I${SRCTOP}/sys 7.PATH: ${SRCTOP}/sys/cam/ctl 8 9PROG= bhyve 10PACKAGE= bhyve 11 12DEBUG_FLAGS= -g -O0 13 14MAN= bhyve.8 15 16BHYVE_SYSDIR?=${SRCTOP} 17 18SRCS= \ 19 atkbdc.c \ 20 acpi.c \ 21 bhyvegc.c \ 22 bhyverun.c \ 23 block_if.c \ 24 bootrom.c \ 25 console.c \ 26 consport.c \ 27 ctl_util.c \ 28 ctl_scsi_all.c \ 29 dbgport.c \ 30 fwctl.c \ 31 gdb.c \ 32 inout.c \ 33 ioapic.c \ 34 mem.c \ 35 mevent.c \ 36 mptbl.c \ 37 pci_ahci.c \ 38 pci_e82545.c \ 39 pci_emul.c \ 40 pci_fbuf.c \ 41 pci_hostbridge.c \ 42 pci_irq.c \ 43 pci_lpc.c \ 44 pci_nvme.c \ 45 pci_passthru.c \ 46 pci_virtio_block.c \ 47 pci_virtio_console.c \ 48 pci_virtio_net.c \ 49 pci_virtio_rnd.c \ 50 pci_virtio_scsi.c \ 51 pci_uart.c \ 52 pci_xhci.c \ 53 pm.c \ 54 post.c \ 55 ps2kbd.c \ 56 ps2mouse.c \ 57 rfb.c \ 58 rtc.c \ 59 smbiostbl.c \ 60 sockstream.c \ 61 task_switch.c \ 62 uart_emul.c \ 63 usb_emul.c \ 64 usb_mouse.c \ 65 virtio.c \ 66 vga.c \ 67 xmsr.c \ 68 spinup_ap.c \ 69 iov.c 70 71.PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm 72SRCS+= vmm_instruction_emul.c 73 74LIBADD= vmmapi md pthread z util sbuf cam 75 76.if ${MK_INET_SUPPORT} != "no" 77CFLAGS+=-DINET 78.endif 79.if ${MK_INET6_SUPPORT} != "no" 80CFLAGS+=-DINET6 81.endif 82.if ${MK_OPENSSL} == "no" 83CFLAGS+=-DNO_OPENSSL 84.else 85LIBADD+= crypto 86.endif 87 88CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000 89CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii 90CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller 91 92.ifdef GDB_LOG 93CFLAGS+=-DGDB_LOG 94.endif 95 96WARNS?= 2 97 98.include <bsd.prog.mk> 99