2010-02-18 23:16:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../hastd
|
|
|
|
|
|
|
|
PROG= hastctl
|
|
|
|
SRCS= activemap.c
|
2011-03-06 22:56:14 +00:00
|
|
|
SRCS+= crc32.c
|
2010-02-18 23:16:19 +00:00
|
|
|
SRCS+= ebuf.c
|
2011-03-06 23:09:33 +00:00
|
|
|
SRCS+= hast_checksum.c hast_compression.c hast_proto.c hastctl.c
|
|
|
|
SRCS+= lzf.c
|
2010-02-18 23:16:19 +00:00
|
|
|
SRCS+= metadata.c
|
|
|
|
SRCS+= nv.c
|
|
|
|
SRCS+= parse.y pjdlog.c
|
2011-03-22 21:11:36 +00:00
|
|
|
SRCS+= proto.c proto_common.c proto_uds.c
|
2010-02-18 23:16:19 +00:00
|
|
|
SRCS+= token.l
|
|
|
|
SRCS+= subr.c
|
|
|
|
SRCS+= y.tab.h
|
|
|
|
MAN= hastctl.8
|
|
|
|
|
2011-03-07 10:38:18 +00:00
|
|
|
NO_WFORMAT=
|
2011-12-19 15:46:15 +00:00
|
|
|
NO_WCAST_ALIGN=
|
2013-04-19 19:45:00 +00:00
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
2010-02-18 23:16:19 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../hastd
|
2011-06-27 09:15:41 +00:00
|
|
|
CFLAGS+=-DHAVE_CAPSICUM
|
2010-02-18 23:16:19 +00:00
|
|
|
CFLAGS+=-DINET
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+=-DINET6
|
|
|
|
.endif
|
|
|
|
# This is needed to have WARNS > 1.
|
|
|
|
CFLAGS+=-DYY_NO_UNPUT
|
2011-10-25 13:49:48 +00:00
|
|
|
CFLAGS+=-DYY_NO_INPUT
|
2010-02-18 23:16:19 +00:00
|
|
|
|
2013-05-11 09:51:44 +00:00
|
|
|
DPADD= ${LIBUTIL}
|
|
|
|
LDADD= -lutil
|
2010-04-22 19:18:10 +00:00
|
|
|
.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>
|