mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +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@
24 lines
467 B
Makefile
24 lines
467 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $FreeBSD$
|
|
|
|
PROG= config
|
|
MAN= config.5 config.8
|
|
SRCS= config.y main.c lang.l mkmakefile.c mkheaders.c \
|
|
mkoptions.c y.tab.h kernconf.c
|
|
|
|
kernconf.c: kernconf.tmpl
|
|
file2c 'char kernconfstr[] = {' ',0};' < ${.CURDIR}/kernconf.tmpl > kernconf.c
|
|
|
|
CFLAGS+= -I. -I${.CURDIR}
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
DPADD= ${LIBL} ${LIBSBUF}
|
|
LDADD= -ll -lsbuf
|
|
|
|
CLEANFILES+= kernconf.c
|
|
|
|
mkmakefile.o: configvers.h
|
|
|
|
.include <bsd.prog.mk>
|