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