summaryrefslogtreecommitdiff
path: root/lib/libauditd/Makefile
blob: 76ffb70bbe25d3ad9a7df83e1f02c7055948c3ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
#

OPENBSMDIR=		${SRCTOP}/contrib/openbsm
_LIBAUDITDDIR=		${OPENBSMDIR}/libauditd
_LIBBSMDIR=		${OPENBSMDIR}/libbsm

PACKAGE=	audit
LIB=		auditd

.PATH:		${_LIBAUDITDDIR}

SRCS=	auditd_lib.c

#
# Must use BSM include files from within the contrib area, not the system.
#
CFLAGS+=	-I${OPENBSMDIR} -I${_LIBBSMDIR}

WARNS?=		3
PRIVATELIB=	true

MAN=

.include <bsd.lib.mk>

# Disable -Wcast-align.  Casting res->ai_addr in auditd_set_host triggers this
# warning, but it's ok because res->ai_addr must've originally pointed to a
# sockaddr_in or sockaddr_in6 anyway.
# Better would be to disable this warning in just that one function, but GCC
# 4.2 can't do that :( .
CWARNFLAGS.auditd_lib.c+=	-Wno-cast-align