1# $FreeBSD: head/sbin/hastd/Makefile 223586 2011-06-27 09:15:41Z pjd $
2
3.include <bsd.own.mk>
4
5PROG= hastd
6SRCS= activemap.c
7SRCS+= control.c crc32.c
8SRCS+= ebuf.c event.c
9SRCS+= hast_checksum.c hast_compression.c hast_proto.c hastd.c hooks.c
10SRCS+= lzf.c
11SRCS+= metadata.c
12SRCS+= nv.c
13SRCS+= secondary.c
14SRCS+= parse.y pjdlog.c primary.c
15SRCS+= proto.c proto_common.c proto_socketpair.c proto_tcp.c proto_uds.c
16SRCS+= rangelock.c
17SRCS+= subr.c
18SRCS+= token.l
19SRCS+= y.tab.h
20MAN= hastd.8 hast.conf.5
21
22NO_WFORMAT=
23CFLAGS+=-I${.CURDIR}
24CFLAGS+=-DHAVE_CAPSICUM
25CFLAGS+=-DPROTO_TCP_DEFAULT_PORT=8457
26CFLAGS+=-DINET
27.if ${MK_INET6_SUPPORT} != "no"
28CFLAGS+=-DINET6
29.endif
30# This is needed to have WARNS > 1.
31CFLAGS+=-DYY_NO_UNPUT
32CFLAGS+=-DYY_NO_INPUT
33
34DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
35LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil
36.if ${MK_OPENSSL} != "no"
37DPADD+= ${LIBCRYPTO}
38LDADD+= -lcrypto
39CFLAGS+=-DHAVE_CRYPTO
40.endif
41
42YFLAGS+=-v
43
44CLEANFILES=y.tab.c y.tab.h y.output
45
46.include <bsd.prog.mk>
2
3.include <bsd.own.mk>
4
5PROG= hastd
6SRCS= activemap.c
7SRCS+= control.c crc32.c
8SRCS+= ebuf.c event.c
9SRCS+= hast_checksum.c hast_compression.c hast_proto.c hastd.c hooks.c
10SRCS+= lzf.c
11SRCS+= metadata.c
12SRCS+= nv.c
13SRCS+= secondary.c
14SRCS+= parse.y pjdlog.c primary.c
15SRCS+= proto.c proto_common.c proto_socketpair.c proto_tcp.c proto_uds.c
16SRCS+= rangelock.c
17SRCS+= subr.c
18SRCS+= token.l
19SRCS+= y.tab.h
20MAN= hastd.8 hast.conf.5
21
22NO_WFORMAT=
23CFLAGS+=-I${.CURDIR}
24CFLAGS+=-DHAVE_CAPSICUM
25CFLAGS+=-DPROTO_TCP_DEFAULT_PORT=8457
26CFLAGS+=-DINET
27.if ${MK_INET6_SUPPORT} != "no"
28CFLAGS+=-DINET6
29.endif
30# This is needed to have WARNS > 1.
31CFLAGS+=-DYY_NO_UNPUT
32CFLAGS+=-DYY_NO_INPUT
33
34DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
35LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil
36.if ${MK_OPENSSL} != "no"
37DPADD+= ${LIBCRYPTO}
38LDADD+= -lcrypto
39CFLAGS+=-DHAVE_CRYPTO
40.endif
41
42YFLAGS+=-v
43
44CLEANFILES=y.tab.c y.tab.h y.output
45
46.include <bsd.prog.mk>