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