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= 24CFLAGS+=-I${.CURDIR}/../hastd 25CFLAGS+=-DHAVE_CAPSICUM 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= ${LIBL} ${LIBUTIL} 35LDADD= -ll -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> 47