freebsd-src/usr.sbin/bhyvectl/Makefile
Mark Johnston 1c4ee7dfb8 bhyvectl: Prepare to add arm64 support
Move MD code into a separate directory and add a simple interface which
lets the MD bits register options and handle them.

No functional change intended.

Reviewed by:	jhb
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D44932
2024-05-01 08:31:00 -04:00

27 lines
469 B
Makefile

.include <src.opts.mk>
.PATH: ${.CURDIR}/${MACHINE_CPUARCH}
PROG= bhyvectl
SRCS= bhyvectl.c
PACKAGE= bhyve
.include "${MACHINE_CPUARCH}/Makefile.inc"
MAN= bhyvectl.8
LIBADD= vmmapi util
CFLAGS+= -I${.CURDIR} -I${SRCTOP}/sys/amd64/vmm
.if ${MK_BHYVE_SNAPSHOT} != "no"
LIBADD+= nv
CFLAGS+= -DBHYVE_SNAPSHOT
# usr.sbin/bhyve/snapshot.h needs ucl header
CFLAGS+= -I${SRCTOP}/contrib/libucl/include
CFLAGS+= -I${SRCTOP}/usr.sbin/bhyve
.endif
.include <bsd.prog.mk>