Skip to content

Commit

Permalink
Merge pull request #16 from oshogbo/master
Browse files Browse the repository at this point in the history
Fix compilation on systems without capser.
  • Loading branch information
jceel authored Jan 7, 2021
2 parents a17c934 + 2ad9d44 commit 9004618
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# and set env variable LIB9P_LOGGING to stderr or to
# the (preferably full path name of) the debug log file.

.include <src.opts.mk>

LIB= 9p
SHLIB_MAJOR= 1
SRCS= pack.c \
Expand All @@ -17,8 +19,14 @@ SRCS= pack.c \

INCS= lib9p.h
CC= clang
CFLAGS= -g -O0 -DL9P_DEBUG=L9P_DEBUG -DWITH_CASPER
LIBADD= sbuf libcasper libcap_pwd libcap_grp
CFLAGS= -g -O0 -DL9P_DEBUG=L9P_DEBUG
LIBADD= sbuf

.if ${MK_CASPER} != "no"
LIBADD+= libcasper libcap_pwd libcap_grp
CFLAGS+= -DWITH_CASPER
.endif

SUBDIR= example

cscope: .PHONY
Expand Down

0 comments on commit 9004618

Please sign in to comment.