2010-02-18 23:16:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
PROG= hastd
|
|
|
|
SRCS= activemap.c
|
2011-03-06 22:56:14 +00:00
|
|
|
SRCS+= control.c crc32.c
|
2010-08-30 23:26:10 +00:00
|
|
|
SRCS+= ebuf.c event.c
|
2011-03-06 23:09:33 +00:00
|
|
|
SRCS+= hast_checksum.c hast_compression.c hast_proto.c hastd.c hooks.c
|
|
|
|
SRCS+= lzf.c
|
2010-02-18 23:16:19 +00:00
|
|
|
SRCS+= metadata.c
|
|
|
|
SRCS+= nv.c
|
|
|
|
SRCS+= secondary.c
|
|
|
|
SRCS+= parse.y pjdlog.c primary.c
|
2011-05-20 11:06:17 +00:00
|
|
|
SRCS+= proto.c proto_common.c proto_socketpair.c proto_tcp.c proto_uds.c
|
2010-02-18 23:16:19 +00:00
|
|
|
SRCS+= rangelock.c
|
|
|
|
SRCS+= subr.c
|
|
|
|
SRCS+= token.l
|
|
|
|
SRCS+= y.tab.h
|
|
|
|
MAN= hastd.8 hast.conf.5
|
|
|
|
|
2011-03-07 10:38:18 +00:00
|
|
|
NO_WFORMAT=
|
2011-03-22 16:21:11 +00:00
|
|
|
CFLAGS+=-DPROTO_TCP4_DEFAULT_PORT=8457
|
2010-02-18 23:16:19 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
|
|
CFLAGS+=-DINET
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+=-DINET6
|
|
|
|
.endif
|
|
|
|
# This is needed to have WARNS > 1.
|
|
|
|
CFLAGS+=-DYY_NO_UNPUT
|
2010-11-22 14:16:22 +00:00
|
|
|
CFLAGS+=-DYY_NO_INPUT
|
2010-02-18 23:16:19 +00:00
|
|
|
|
2010-04-22 19:18:10 +00:00
|
|
|
DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
|
|
|
|
LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
DPADD+= ${LIBCRYPTO}
|
|
|
|
LDADD+= -lcrypto
|
|
|
|
CFLAGS+=-DHAVE_CRYPTO
|
|
|
|
.endif
|
2010-02-18 23:16:19 +00:00
|
|
|
|
|
|
|
YFLAGS+=-v
|
|
|
|
|
|
|
|
CLEANFILES=y.tab.c y.tab.h y.output
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|