]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - sbin/hastctl/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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 CFLAGS+=-I${.CURDIR}/../hastd
24 CFLAGS+=-DHAVE_CAPSICUM
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 CFLAGS+=-DYY_NO_INPUT
32
33 DPADD=  ${LIBL} ${LIBUTIL}
34 LDADD=  -ll -lutil
35 .if ${MK_OPENSSL} != "no"
36 DPADD+= ${LIBCRYPTO}
37 LDADD+= -lcrypto
38 CFLAGS+=-DHAVE_CRYPTO
39 .endif
40
41 YFLAGS+=-v
42
43 CLEANFILES=y.tab.c y.tab.h y.output
44
45 .include <bsd.prog.mk>