freebsd-nq/lib/libauditd/Makefile
Alan Somers 72a600a7a1 libauditd: make it a PRIVATELIB
According to the upstream man page (which we don't install), none of
libauditd's symbols are intended to be public. Also, I can't find any
evidence for a port that uses libauditd. Therefore, we should treat it like
other such libraries and use PRIVATELIB.

Reported by:	phk
Reviewed by:	cem, emaste
MFC after:	2 weeks
2020-04-19 02:20:39 +00:00

33 lines
707 B
Makefile

#
# $FreeBSD$
#
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
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