]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sbin/hastctl/Makefile
MFC r290326:
[FreeBSD/stable/8.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 WARNS?= 5
21 MAN=    hastctl.8
22
23 NO_WFORMAT=
24 CFLAGS+=-I${.CURDIR}/../hastd
25 CFLAGS+=-DINET
26 .if ${MK_INET6_SUPPORT} != "no"
27 CFLAGS+=-DINET6
28 .endif
29 # This is needed to have WARNS > 1.
30 CFLAGS+=-DYY_NO_UNPUT
31
32 DPADD=  ${LIBUTIL}
33 LDADD=  -lutil
34 .if ${MK_OPENSSL} != "no"
35 DPADD+= ${LIBCRYPTO}
36 LDADD+= -lcrypto
37 CFLAGS+=-DHAVE_CRYPTO
38 .endif
39
40 YFLAGS+=-v
41
42 CLEANFILES=y.tab.c y.tab.h y.output
43
44 .include <bsd.prog.mk>