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