mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
7e659f9491
This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
34 lines
774 B
Makefile
34 lines
774 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
OPENBSMDIR=${.CURDIR}/../../contrib/openbsm
|
|
.PATH: ${OPENBSMDIR}/bin/auditdistd
|
|
|
|
# Addition of auditdistd because otherwise generated parse.c can't find
|
|
# auditdistd.h. This seems like a makefile non-feature.
|
|
CFLAGS+=-I${OPENBSMDIR} -I${OPENBSMDIR}/bin/auditdistd
|
|
|
|
NO_WFORMAT=
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
PROG= auditdistd
|
|
SRCS= auditdistd.c
|
|
SRCS+= parse.y pjdlog.c
|
|
SRCS+= proto.c proto_common.c proto_socketpair.c proto_tcp.c proto_tls.c
|
|
SRCS+= receiver.c
|
|
SRCS+= sandbox.c sender.c subr.c
|
|
SRCS+= token.l trail.c
|
|
MAN= auditdistd.8 auditdistd.conf.5
|
|
|
|
DPADD= ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
|
|
LDADD= -ll -lpthread -lutil
|
|
DPADD+= ${LIBCRYPTO} ${LIBSSL}
|
|
LDADD+= -lcrypto -lssl
|
|
|
|
YFLAGS+=-v
|
|
|
|
CLEANFILES=parse.c parse.h parse.output
|
|
|
|
.include <bsd.prog.mk>
|