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= 23CFLAGS+=-I${.CURDIR}/../hastd 24CFLAGS+=-DHAVE_CAPSICUM 25CFLAGS+=-DINET 26.if ${MK_INET6_SUPPORT} != "no" 27CFLAGS+=-DINET6 28.endif 29# This is needed to have WARNS > 1. 30CFLAGS+=-DYY_NO_UNPUT 31CFLAGS+=-DYY_NO_INPUT 32 33DPADD= ${LIBL} ${LIBUTIL} 34LDADD= -ll -lutil 35.if ${MK_OPENSSL} != "no" 36DPADD+= ${LIBCRYPTO} 37LDADD+= -lcrypto 38CFLAGS+=-DHAVE_CRYPTO 39.endif 40 41YFLAGS+=-v 42 43CLEANFILES=y.tab.c y.tab.h y.output 44 45.include <bsd.prog.mk> 46