Lots of kernel code requires vnodE_if.h, so provide code to generate it

if requested.  LKMs which need it should use:

SRCS+=	vnode_if.h
CLEANFILES+= vnode_if.h vnode_if.c

These rules were already present for VFS LKMs; now they are enabled all
the time.  (VFS LKMs do not need the fragment above; it is still done for them.)
This commit is contained in:
Garrett Wollman 1994-09-26 22:34:04 +00:00
parent 78eb91b47f
commit d2920e07e6
2 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.1 1994/09/14 21:59:28 wollman Exp $
# $Id: bsd.kmod.mk,v 1.2 1994/09/21 03:49:59 wollman Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@ -145,13 +145,11 @@ unload: ${PROG}
/sbin/modunload -n ${KMOD}
.endif
.if defined(VFS_LKM)
KERN= ${.CURDIR}/../../sys/kern
vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
sh ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
./vnode_if.h: vnode_if.h
.endif
.include <bsd.dep.mk>

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.1 1994/09/14 21:59:28 wollman Exp $
# $Id: bsd.kmod.mk,v 1.2 1994/09/21 03:49:59 wollman Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@ -145,13 +145,11 @@ unload: ${PROG}
/sbin/modunload -n ${KMOD}
.endif
.if defined(VFS_LKM)
KERN= ${.CURDIR}/../../sys/kern
vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
sh ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
./vnode_if.h: vnode_if.h
.endif
.include <bsd.dep.mk>