1366f6083SPeter Grehan# 2366f6083SPeter Grehan# $FreeBSD$ 3366f6083SPeter Grehan# 4366f6083SPeter Grehan 5f4d34383SMarcelo Araujo.include <src.opts.mk> 6f4d34383SMarcelo Araujo 7366f6083SPeter GrehanPROG= bhyve 8c2e2d02cSBaptiste DaroussinPACKAGE= bhyve 9366f6083SPeter Grehan 10430a7872SPeter GrehanDEBUG_FLAGS= -g -O0 11430a7872SPeter Grehan 12b13e60daSPeter GrehanMAN= bhyve.8 13b1843e71SPeter Grehan 14e37bf586SPeter GrehanBHYVE_SYSDIR?=${SRCTOP} 155ccf6ce1SPeter Grehan 16b1843e71SPeter GrehanSRCS= \ 17d42ea573STycho Nightingale atkbdc.c \ 18b1843e71SPeter Grehan acpi.c \ 192cf9911fSPeter Grehan bhyvegc.c \ 20b1843e71SPeter Grehan bhyverun.c \ 21b1843e71SPeter Grehan block_if.c \ 229b1aa8d6SNeel Natu bootrom.c \ 232cf9911fSPeter Grehan console.c \ 24b1843e71SPeter Grehan consport.c \ 25b1843e71SPeter Grehan dbgport.c \ 2688ac6958SPeter Grehan fwctl.c \ 27*cd377eb3SJohn Baldwin gdb.c \ 28b1843e71SPeter Grehan inout.c \ 293cbf3585SJohn Baldwin ioapic.c \ 30b1843e71SPeter Grehan mem.c \ 31b1843e71SPeter Grehan mevent.c \ 32b1843e71SPeter Grehan mptbl.c \ 33b1843e71SPeter Grehan pci_ahci.c \ 349e749f25SAlexander Motin pci_e82545.c \ 35b1843e71SPeter Grehan pci_emul.c \ 362cf9911fSPeter Grehan pci_fbuf.c \ 37b1843e71SPeter Grehan pci_hostbridge.c \ 38b3e9732aSJohn Baldwin pci_irq.c \ 39b1843e71SPeter Grehan pci_lpc.c \ 40b1843e71SPeter Grehan pci_passthru.c \ 41b1843e71SPeter Grehan pci_virtio_block.c \ 4213ee8ddeSJakub Wojciech Klama pci_virtio_console.c \ 43b1843e71SPeter Grehan pci_virtio_net.c \ 449d0c4e17SPeter Grehan pci_virtio_rnd.c \ 45b1843e71SPeter Grehan pci_uart.c \ 462cf9911fSPeter Grehan pci_xhci.c \ 47b1843e71SPeter Grehan pm.c \ 48b1843e71SPeter Grehan post.c \ 492cf9911fSPeter Grehan ps2kbd.c \ 502cf9911fSPeter Grehan ps2mouse.c \ 512cf9911fSPeter Grehan rfb.c \ 52b1843e71SPeter Grehan rtc.c \ 53af5bfc53STycho Nightingale smbiostbl.c \ 542cf9911fSPeter Grehan sockstream.c \ 553d5444c8SNeel Natu task_switch.c \ 56b1843e71SPeter Grehan uart_emul.c \ 572cf9911fSPeter Grehan usb_emul.c \ 582cf9911fSPeter Grehan usb_mouse.c \ 59b1843e71SPeter Grehan virtio.c \ 602cf9911fSPeter Grehan vga.c \ 61b1843e71SPeter Grehan xmsr.c \ 62b1843e71SPeter Grehan spinup_ap.c 63366f6083SPeter Grehan 64e37bf586SPeter Grehan.PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm 65ba9b7bf7SNeel NatuSRCS+= vmm_instruction_emul.c 66ba9b7bf7SNeel Natu 672cf9911fSPeter GrehanLIBADD= vmmapi md pthread z 682cf9911fSPeter Grehan 69f4d34383SMarcelo Araujo.if ${MK_OPENSSL} == "no" 70f4d34383SMarcelo AraujoCFLAGS+=-DNO_OPENSSL 71f4d34383SMarcelo Araujo.else 72f4d34383SMarcelo AraujoLIBADD+= crypto 73f4d34383SMarcelo Araujo.endif 74f4d34383SMarcelo Araujo 759e749f25SAlexander MotinCFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000 769e749f25SAlexander MotinCFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii 772cf9911fSPeter GrehanCFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller 78366f6083SPeter Grehan 79*cd377eb3SJohn Baldwin.ifdef GDB_LOG 80*cd377eb3SJohn BaldwinCFLAGS+=-DGDB_LOG 81*cd377eb3SJohn Baldwin.endif 82*cd377eb3SJohn Baldwin 83b67e81dbSJohn BaldwinWARNS?= 2 84b67e81dbSJohn Baldwin 85366f6083SPeter Grehan.include <bsd.prog.mk> 86