]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sbin/hastctl/Makefile
MFC r368207,368607:
[FreeBSD/stable/10.git] / sbin / hastctl / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .PATH:  ${.CURDIR}/../hastd
6
7 PROG=   hastctl
8 SRCS=   activemap.c
9 SRCS+=  crc32.c
10 SRCS+=  ebuf.c
11 SRCS+=  hast_checksum.c hast_compression.c hast_proto.c hastctl.c
12 SRCS+=  lzf.c
13 SRCS+=  metadata.c
14 SRCS+=  nv.c
15 SRCS+=  parse.y pjdlog.c
16 SRCS+=  proto.c proto_common.c proto_uds.c
17 SRCS+=  token.l
18 SRCS+=  subr.c
19 SRCS+=  y.tab.h
20 MAN=    hastctl.8
21
22 NO_WFORMAT=
23 NO_WCAST_ALIGN=
24 NO_WMISSING_VARIABLE_DECLARATIONS=
25 CFLAGS+=-I${.CURDIR}/../hastd
26 CFLAGS+=-DHAVE_CAPSICUM
27 CFLAGS+=-DINET
28 .if ${MK_INET6_SUPPORT} != "no"
29 CFLAGS+=-DINET6
30 .endif
31 # This is needed to have WARNS > 1.
32 CFLAGS+=-DYY_NO_UNPUT
33 CFLAGS+=-DYY_NO_INPUT
34
35 DPADD=  ${LIBUTIL}
36 LDADD=  -lutil
37 .if ${MK_OPENSSL} != "no"
38 DPADD+= ${LIBCRYPTO}
39 LDADD+= -lcrypto
40 CFLAGS+=-DHAVE_CRYPTO
41 .endif
42
43 YFLAGS+=-v
44
45 CLEANFILES=y.tab.c y.tab.h y.output
46
47 .include <bsd.prog.mk>