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