xref: /freebsd/lib/libauditd/Makefile (revision 1b3c07bed63c045cf75e18ff053443cabee2360f)
17a0a89d2SRobert Watson#
27a0a89d2SRobert Watson#
37a0a89d2SRobert Watson
4f347f2e2SEnji CooperOPENBSMDIR=		${SRCTOP}/contrib/openbsm
543b2ead9SBryan Drewery_LIBAUDITDDIR=		${OPENBSMDIR}/libauditd
643b2ead9SBryan Drewery_LIBBSMDIR=		${OPENBSMDIR}/libbsm
77a0a89d2SRobert Watson
8*1b3c07beSLexi WinterPACKAGE=	audit
97a0a89d2SRobert WatsonLIB=		auditd
107a0a89d2SRobert Watson
1143b2ead9SBryan Drewery.PATH:		${_LIBAUDITDDIR}
127a0a89d2SRobert Watson
137a0a89d2SRobert WatsonSRCS=	auditd_lib.c
147a0a89d2SRobert Watson
157a0a89d2SRobert Watson#
167a0a89d2SRobert Watson# Must use BSM include files from within the contrib area, not the system.
177a0a89d2SRobert Watson#
1843b2ead9SBryan DreweryCFLAGS+=	-I${OPENBSMDIR} -I${_LIBBSMDIR}
197a0a89d2SRobert Watson
20daaf5759SEd SchoutenWARNS?=		3
2172a600a7SAlan SomersPRIVATELIB=	true
22daaf5759SEd Schouten
233bdf7758SWarner LoshMAN=
247a0a89d2SRobert Watson
257a0a89d2SRobert Watson.include <bsd.lib.mk>
2680d3469aSAlan Somers
2780d3469aSAlan Somers# Disable -Wcast-align.  Casting res->ai_addr in auditd_set_host triggers this
2880d3469aSAlan Somers# warning, but it's ok because res->ai_addr must've originally pointed to a
2980d3469aSAlan Somers# sockaddr_in or sockaddr_in6 anyway.
3080d3469aSAlan Somers# Better would be to disable this warning in just that one function, but GCC
3180d3469aSAlan Somers# 4.2 can't do that :( .
3280d3469aSAlan SomersCWARNFLAGS.auditd_lib.c+=	-Wno-cast-align
33