Unbreak "make lint" for programs and "make llib-l${LIB}.ln" for

libraries a little by not passing all of ${CFLAGS} to lint.  Pass
only options matching -[DIU]*.  The important -nostdinc option can't
be passed like I first thought because lint misinterprets as
"-n -o stdinc".  The unimportant -B* option can't be passed because
lint doesn't support it.  Otherwise, we pass the same options as
to mkdep, exept for a bug in the latter: -U* is not passed.  All
this depends on option args not being separated from option flags
by a space.
This commit is contained in:
Bruce Evans 2001-12-03 22:31:09 +00:00
parent 9d26129dba
commit 08b443022e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87307
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ lib${LIB}_pic.a:: ${SOBJS}
.endif
llib-l${LIB}.ln: ${SRCS}
${LINT} -C${LIB} ${CFLAGS} ${.ALLSRC:M*.c}
${LINT} -C${LIB} ${CFLAGS:M-[DIU]*} ${.ALLSRC:M*.c}
.if !target(clean)
clean: _SUBDIR

View File

@ -178,7 +178,7 @@ distribute: _SUBDIR
.if !target(lint)
lint: ${SRCS} _SUBDIR
.if defined(PROG)
@${LINT} ${LINTFLAGS} ${.ALLSRC} | more 2>&1
${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} | more 2>&1
.endif
.endif