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_passthru.c \ 45 pci_virtio_block.c \ 46 pci_virtio_console.c \ 47 pci_virtio_net.c \ 48 pci_virtio_rnd.c \ 49 pci_virtio_scsi.c \ 50 pci_uart.c \ 51 pci_xhci.c \ 52 pm.c \ 53 post.c \ 54 ps2kbd.c \ 55 ps2mouse.c \ 56 rfb.c \ 57 rtc.c \ 58 smbiostbl.c \ 59 sockstream.c \ 60 task_switch.c \ 61 uart_emul.c \ 62 usb_emul.c \ 63 usb_mouse.c \ 64 virtio.c \ 65 vga.c \ 66 xmsr.c \ 67 spinup_ap.c \ 68 iov.c 69 70.PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm 71SRCS+= vmm_instruction_emul.c 72 73LIBADD= vmmapi md pthread z util sbuf cam 74 75.if ${MK_OPENSSL} == "no" 76CFLAGS+=-DNO_OPENSSL 77.else 78LIBADD+= crypto 79.endif 80 81CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000 82CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii 83CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller 84 85.ifdef GDB_LOG 86CFLAGS+=-DGDB_LOG 87.endif 88 89WARNS?= 2 90 91.include <bsd.prog.mk> 92