5 MANDIR?= ${PREFIX}/man/man
7 UNAME!= /usr/bin/uname -s
10 SRCS= attrstack.c config.c detailer.c diff.c fattr.c fixups.c fnmatch.c \
11 globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \
12 pathcomp.c proto.c status.c stream.c threads.c token.l updater.c
14 CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG
17 # A bit of tweaking is needed to get this Makefile working
18 # with the bsd.prog.mk of all the *BSD OSes...
19 .if (${UNAME} == "NetBSD")
23 .elif (${UNAME} == "OpenBSD")
24 # I bet there's a better way to do this with the OpenBSD mk
25 # framework but well, this works and I got bored.
28 CLEANFILES+= parse.c parse.h y.tab.h
37 cp ${.ALLSRC} ${.TARGET}
41 DPADD= ${LIBCRYPTO} ${LIBZ}
44 .include <bsd.prog.mk>