1#
2#
3
4OPENBSMDIR=		${SRCTOP}/contrib/openbsm
5_LIBAUDITDDIR=		${OPENBSMDIR}/libauditd
6_LIBBSMDIR=		${OPENBSMDIR}/libbsm
7
8PACKAGE=	audit
9LIB=		auditd
10
11.PATH:		${_LIBAUDITDDIR}
12
13SRCS=	auditd_lib.c
14
15#
16# Must use BSM include files from within the contrib area, not the system.
17#
18CFLAGS+=	-I${OPENBSMDIR} -I${_LIBBSMDIR}
19
20WARNS?=		3
21PRIVATELIB=	true
22
23MAN=
24
25.include <bsd.lib.mk>
26
27# Disable -Wcast-align.  Casting res->ai_addr in auditd_set_host triggers this
28# warning, but it's ok because res->ai_addr must've originally pointed to a
29# sockaddr_in or sockaddr_in6 anyway.
30# Better would be to disable this warning in just that one function, but GCC
31# 4.2 can't do that :( .
32CWARNFLAGS.auditd_lib.c+=	-Wno-cast-align
33