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