Add lint infrastructure

This commit is contained in:
perry 2002-11-02 07:48:17 +00:00
parent 6448ffbdfe
commit efd79c70c9
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.35 2001/11/21 22:10:54 jmc Exp $
# $NetBSD: Makefile.inc,v 1.36 2002/11/02 07:48:17 perry Exp $
#
# Configuration variables (default values are below):
#
@ -30,6 +30,9 @@ KERNLIB= ${KERNDST}/libkern.a
KERNLIB_PROF= ${KERNDST}/libkern_p.a
.endif
LIBKERNLNBN= llib-lkern.ln
KERNLIBLN= ${KERNDST}/${LIBKERNLNBN}
KERNMAKE= \
cd ${KERNDST} && ${MAKE} -f ${KERNDIR:Q}/Makefile \
KERNDIR=${KERNDIR:Q} \
@ -43,6 +46,7 @@ KERNMAKE= \
MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
KERNCPPFLAGS=${CPPFLAGS:S@^-I.@-I${KERNDOTDIR}@g:Q} \
KERNMISCCPPFLAGS=${KERNMISCCPPFLAGS:Q} \
LINTFLAGS=${KERNLINTFLAGS:Q} \
${KERNMISCMAKEFLAGS}
${KERNLIB}: .NOTMAIN .MAKE __always_make_kernlib
@ -61,6 +65,10 @@ ${KERNLIB_PROF}: .NOTMAIN .MAKE __always_make_kernlib
@${KERNMAKE} libkern.po
.endif
${KERNLIBLN}: .NOTMAIN .MAKE __always_make_kernlib
@echo making sure the kern lint library is up to date...
@${KERNMAKE} ${LIBKERNLNBN}
clean: .NOTMAIN cleankernlib
cleankernlib: .NOTMAIN
@echo cleaning the kern library objects