120125784a
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@
17 lines
287 B
Makefile
17 lines
287 B
Makefile
# $FreeBSD$
|
|
# $OpenBSD: Makefile,v 1.4 2006/06/30 19:02:28 otto Exp $
|
|
|
|
PROG= bc
|
|
SRCS= bc.y scan.l
|
|
CFLAGS+= -I. -I${.CURDIR}
|
|
|
|
DPADD= ${LIBEDIT} ${LIBTERMCAP}
|
|
LDADD= -ledit -ltermcap
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
FILES+= bc.library
|
|
FILESDIR=${SHAREDIR}/misc
|
|
|
|
.include <bsd.prog.mk>
|