36df4f8d05
Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua> MFC after: 3 days
41 lines
660 B
Makefile
41 lines
660 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../hastd
|
|
|
|
PROG= hastctl
|
|
SRCS= activemap.c
|
|
SRCS+= ebuf.c
|
|
SRCS+= hast_proto.c hastctl.c
|
|
SRCS+= metadata.c
|
|
SRCS+= nv.c
|
|
SRCS+= parse.y pjdlog.c
|
|
SRCS+= proto.c proto_common.c proto_tcp4.c proto_uds.c
|
|
SRCS+= token.l
|
|
SRCS+= subr.c
|
|
SRCS+= y.tab.h
|
|
MAN= hastctl.8
|
|
|
|
CFLAGS+=-I${.CURDIR}/../hastd
|
|
CFLAGS+=-DINET
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+=-DINET6
|
|
.endif
|
|
# This is needed to have WARNS > 1.
|
|
CFLAGS+=-DYY_NO_UNPUT
|
|
|
|
DPADD= ${LIBL}
|
|
LDADD= -ll
|
|
.if ${MK_OPENSSL} != "no"
|
|
DPADD+= ${LIBCRYPTO}
|
|
LDADD+= -lcrypto
|
|
CFLAGS+=-DHAVE_CRYPTO
|
|
.endif
|
|
|
|
YFLAGS+=-v
|
|
|
|
CLEANFILES=y.tab.c y.tab.h y.output
|
|
|
|
.include <bsd.prog.mk>
|