1# 2# $FreeBSD$ 3# 4 5.include <src.opts.mk> 6 7PROG= bhyve 8PACKAGE= bhyve 9 10DEBUG_FLAGS= -g -O0 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 dbgport.c \ 26 fwctl.c \ 27 gdb.c \ 28 inout.c \ 29 ioapic.c \ 30 mem.c \ 31 mevent.c \ 32 mptbl.c \ 33 pci_ahci.c \ 34 pci_e82545.c \ 35 pci_emul.c \ 36 pci_fbuf.c \ 37 pci_hostbridge.c \ 38 pci_irq.c \ 39 pci_lpc.c \ 40 pci_passthru.c \ 41 pci_virtio_block.c \ 42 pci_virtio_console.c \ 43 pci_virtio_net.c \ 44 pci_virtio_rnd.c \ 45 pci_uart.c \ 46 pci_xhci.c \ 47 pm.c \ 48 post.c \ 49 ps2kbd.c \ 50 ps2mouse.c \ 51 rfb.c \ 52 rtc.c \ 53 smbiostbl.c \ 54 sockstream.c \ 55 task_switch.c \ 56 uart_emul.c \ 57 usb_emul.c \ 58 usb_mouse.c \ 59 virtio.c \ 60 vga.c \ 61 xmsr.c \ 62 spinup_ap.c 63 64.PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm 65SRCS+= vmm_instruction_emul.c 66 67LIBADD= vmmapi md pthread z 68 69.if ${MK_OPENSSL} == "no" 70CFLAGS+=-DNO_OPENSSL 71.else 72LIBADD+= crypto 73.endif 74 75CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000 76CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii 77CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller 78 79.ifdef GDB_LOG 80CFLAGS+=-DGDB_LOG 81.endif 82 83WARNS?= 2 84 85.include <bsd.prog.mk> 86