1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE=hast 6.PATH: ${.CURDIR}/../hastd 7 8PROG= hastctl 9SRCS= activemap.c 10SRCS+= crc32.c 11SRCS+= ebuf.c 12SRCS+= hast_checksum.c hast_compression.c hast_proto.c hastctl.c 13SRCS+= lzf.c 14SRCS+= metadata.c 15SRCS+= nv.c 16SRCS+= parse.y pjdlog.c 17SRCS+= proto.c proto_common.c proto_uds.c 18SRCS+= token.l 19SRCS+= subr.c 20SRCS+= y.tab.h 21MAN= hastctl.8 22 23NO_WFORMAT= 24NO_WCAST_ALIGN= 25NO_WMISSING_VARIABLE_DECLARATIONS= 26CFLAGS+=-I${.CURDIR}/../hastd 27CFLAGS+=-DHAVE_CAPSICUM 28CFLAGS+=-DINET 29.if ${MK_INET6_SUPPORT} != "no" 30CFLAGS+=-DINET6 31.endif 32# This is needed to have WARNS > 1. 33CFLAGS+=-DYY_NO_UNPUT 34CFLAGS+=-DYY_NO_INPUT 35 36LIBADD= util 37.if ${MK_OPENSSL} != "no" 38LIBADD+= crypto 39CFLAGS+=-DHAVE_CRYPTO 40.endif 41 42YFLAGS+=-v 43 44CLEANFILES=y.tab.c y.tab.h y.output 45 46.include <bsd.prog.mk> 47