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@
27 lines
458 B
Makefile
27 lines
458 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= jail
|
|
MAN= jail.8 jail.conf.5
|
|
SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h
|
|
|
|
DPADD= ${LIBJAIL} ${LIBKVM} ${LIBUTIL} ${LIBL}
|
|
LDADD= -ljail -lkvm -lutil -ll
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
YFLAGS+=-v
|
|
CFLAGS+=-I. -I${.CURDIR}
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
|
|
CLEANFILES= y.output
|
|
|
|
.include <bsd.prog.mk>
|