mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-25 03:54:17 +01:00
80d3469a3f
Along with some pending upstream changes, this will allow raising the WARNS level. Reviewed by: cem, aniketp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16486
33 lines
708 B
Makefile
33 lines
708 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PACKAGE=lib${LIB}
|
|
OPENBSMDIR= ${SRCTOP}/contrib/openbsm
|
|
_LIBAUDITDDIR= ${OPENBSMDIR}/libauditd
|
|
_LIBBSMDIR= ${OPENBSMDIR}/libbsm
|
|
|
|
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
|
|
|
|
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
|