1# 2# $FreeBSD$ 3# 4 5PACKAGE=lib${LIB} 6OPENBSMDIR= ${SRCTOP}/contrib/openbsm 7_LIBAUDITDDIR= ${OPENBSMDIR}/libauditd 8_LIBBSMDIR= ${OPENBSMDIR}/libbsm 9 10LIB= auditd 11 12.PATH: ${_LIBAUDITDDIR} 13 14SRCS= auditd_lib.c 15 16# 17# Must use BSM include files from within the contrib area, not the system. 18# 19CFLAGS+= -I${OPENBSMDIR} -I${_LIBBSMDIR} 20 21WARNS?= 3 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