Files
Mark Johnston 1b8ccb02ac lib9p: Make it a private library
lib9p was imported to add a 9p server to bhyve (and I believe this was
the original motivation for writing it in the first place).  Its
external interfaces are kind of strange (from first-hand experience
using it to implement an inetd-based 9p server) and undocumented.
Moreover, upstream has been inactive for over five years.

I suspect there are no third-party consumers.  Let's make it a private
library for now, so as to make it easier to rework external interfaces.
If we get more code written against it, symbol versioning, and some
documentation, we can revisit this decision.

PR:		297499
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D58828
2026-09-01 15:28:28 +00:00

34 lines
539 B
Makefile

.include <src.opts.mk>
.PATH: ${.CURDIR}/../../contrib/lib9p
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../contrib/lib9p
LIBADD= sbuf
.if ${MK_CASPER} != "no"
CFLAGS+= -DWITH_CASPER
LIBADD+= casper cap_pwd cap_grp
.endif
LIB= 9p
PRIVATELIB=
PACKAGE= lib${LIB}
SHLIB_MAJOR= 1
SRCS= connection.c \
genacl.c \
hashtable.c \
log.c \
pack.c \
request.c \
rfuncs.c \
threadpool.c \
utils.c \
backend/fs.c \
transport/socket.c
INCSDIR= ${INCLUDEDIR}/lib9p
INCS= fid.h lib9p.h backend/fs.h
.include <bsd.lib.mk>