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:
parent
78eb91b47f
commit
d2920e07e6
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user