Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/Makefile
Show All 22 Lines | SRCS= \ | ||||
bhyverun.c \ | bhyverun.c \ | ||||
block_if.c \ | block_if.c \ | ||||
bootrom.c \ | bootrom.c \ | ||||
config.c \ | config.c \ | ||||
console.c \ | console.c \ | ||||
crc16.c \ | crc16.c \ | ||||
ctl_scsi_all.c \ | ctl_scsi_all.c \ | ||||
ctl_util.c \ | ctl_util.c \ | ||||
gdb.c \ | |||||
hda_codec.c \ | hda_codec.c \ | ||||
iov.c \ | iov.c \ | ||||
mem.c \ | mem.c \ | ||||
mevent.c \ | mevent.c \ | ||||
net_backends.c \ | net_backends.c \ | ||||
net_utils.c \ | net_utils.c \ | ||||
pci_emul.c \ | pci_emul.c \ | ||||
pci_hostbridge.c \ | pci_hostbridge.c \ | ||||
Show All 22 Lines | SRCS= \ | ||||
vmgenc.c | vmgenc.c | ||||
.if ${MK_BHYVE_SNAPSHOT} != "no" | .if ${MK_BHYVE_SNAPSHOT} != "no" | ||||
SRCS+= snapshot.c | SRCS+= snapshot.c | ||||
.endif | .endif | ||||
.include "${MACHINE_CPUARCH}/Makefile.inc" | .include "${MACHINE_CPUARCH}/Makefile.inc" | ||||
.if defined(BHYVE_GDB_SUPPORT) | |||||
SRCS+= gdb.c | |||||
CFLAGS+= -DBHYVE_GDB | |||||
.ifdef GDB_LOG | |||||
CFLAGS+=-DGDB_LOG | |||||
.endif | |||||
.endif | |||||
CFLAGS+=-I${.CURDIR} \ | CFLAGS+=-I${.CURDIR} \ | ||||
-I${.CURDIR}/../../contrib/lib9p \ | -I${.CURDIR}/../../contrib/lib9p \ | ||||
-I${SRCTOP}/sys | -I${SRCTOP}/sys | ||||
LIBADD= vmmapi md nv pthread z util sbuf cam 9p | LIBADD= vmmapi md nv pthread z util sbuf cam 9p | ||||
.if ${MK_BHYVE_SNAPSHOT} != "no" | .if ${MK_BHYVE_SNAPSHOT} != "no" | ||||
LIBADD+= ucl xo | LIBADD+= ucl xo | ||||
Show All 17 Lines | |||||
.endif | .endif | ||||
CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000 | CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/e1000 | ||||
CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii | CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/mii | ||||
CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller | CFLAGS+= -I${BHYVE_SYSDIR}/sys/dev/usb/controller | ||||
.if ${MK_BHYVE_SNAPSHOT} != "no" | .if ${MK_BHYVE_SNAPSHOT} != "no" | ||||
CFLAGS+= -I${SRCTOP}/contrib/libucl/include | CFLAGS+= -I${SRCTOP}/contrib/libucl/include | ||||
CFLAGS+= -DBHYVE_SNAPSHOT | CFLAGS+= -DBHYVE_SNAPSHOT | ||||
.endif | |||||
.ifdef GDB_LOG | |||||
CFLAGS+=-DGDB_LOG | |||||
.endif | .endif | ||||
# Disable thread safety analysis since it only finds very simple bugs and | # Disable thread safety analysis since it only finds very simple bugs and | ||||
# yields many false positives. | # yields many false positives. | ||||
NO_WTHREAD_SAFETY= | NO_WTHREAD_SAFETY= | ||||
NO_WCAST_ALIGN= | NO_WCAST_ALIGN= | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |