xref: /freebsd/contrib/lib9p/Makefile (revision 848ee2a3a8b47c9905fc51fefcf60eb371edbb98)
1# Note: to turn on debug, use -DL9P_DEBUG=L9P_DEBUG,
2# and set env variable LIB9P_LOGGING to stderr or to
3# the (preferably full path name of) the debug log file.
4
5LIB=		9p
6SHLIB_MAJOR=	1
7SRCS=		pack.c \
8		connection.c \
9		request.c log.c \
10		hashtable.c \
11		genacl.c \
12		utils.c \
13		rfuncs.c \
14		threadpool.c \
15		transport/socket.c \
16		backend/fs.c
17
18INCS=		lib9p.h
19CC=		clang
20CFLAGS=		-g -O0 -DL9P_DEBUG=L9P_DEBUG -DWITH_CASPER
21LIBADD=		sbuf libcasper libcap_pwd libcap_grp
22SUBDIR=		example
23
24cscope: .PHONY
25	cd ${.CURDIR}; cscope -buq $$(find . -name '*.[ch]' -print)
26
27.include <bsd.lib.mk>
28