2020-10-03 19:05:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2021-01-04 19:48:48 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2020-10-03 19:05:13 +00:00
|
|
|
.PATH: ${.CURDIR}/../../contrib/lib9p
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/lib9p
|
|
|
|
|
2021-01-04 19:48:48 +00:00
|
|
|
.if ${MK_CASPER} != "no"
|
|
|
|
CFLAGS+= -DWITH_CASPER
|
|
|
|
.endif
|
|
|
|
|
2020-10-03 19:05:13 +00:00
|
|
|
LIB= 9p
|
|
|
|
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
|
|
|
|
|
|
|
|
LIBADD= sbuf
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|