1#
2#
3
4OPENBSMDIR=${SRCTOP}/contrib/openbsm
5.PATH: ${OPENBSMDIR}/bin/auditdistd
6
7# Addition of auditdistd because otherwise generated parse.c can't find
8# auditdistd.h.  This seems like a makefile non-feature.
9CFLAGS+=-I${OPENBSMDIR} -I${OPENBSMDIR}/bin/auditdistd
10
11CFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L
12
13NO_WFORMAT=
14NO_WMISSING_VARIABLE_DECLARATIONS=
15
16PACKAGE=audit
17PROG=	auditdistd
18SRCS=	auditdistd.c
19SRCS+=	parse.y pjdlog.c
20SRCS+=	proto.c proto_common.c proto_socketpair.c proto_tcp.c proto_tls.c
21SRCS+=	receiver.c
22SRCS+=	sandbox.c sender.c subr.c
23SRCS+=	token.l trail.c
24MAN=	auditdistd.8 auditdistd.conf.5
25
26LIBADD+=	pthread util crypto ssl
27
28YFLAGS+=-v
29
30CLEANFILES=parse.c parse.h parse.output
31
32# auditdistd cannot use FreeBSD specific lock annotation macros. Disable
33# thread safety analysis completely.
34NO_WTHREAD_SAFETY=
35
36.include <bsd.prog.mk>
37