Use the -c and -h args of vnode_if.sh to generate only the .h file that

we use.  The .c half is statically compiled into the kernel.  It's kinda
silly to generate a .h file on the fly that has inlines to call the
.c stuff when the .c code is fixed.

Also, zap the special treatment for VFS_KLD modules.  This treatment
applies to lots of things, not just VFS's.
This commit is contained in:
Peter Wemm 1999-12-12 16:45:58 +00:00
parent c7ba5d0b3e
commit 9029b6442a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54501
2 changed files with 14 additions and 18 deletions

View File

@ -109,10 +109,6 @@ CFLAGS+= -I${.OBJDIR} -I${.OBJDIR}/@
CFLAGS+= -I${DESTDIR}/usr/include
.endif
.if defined(VFS_KLD)
SRCS+= vnode_if.h
.endif
.if ${OBJFORMAT} == elf
CLEANFILES+= setdef0.c setdef1.c setdefs.h
CLEANFILES+= setdef0.o setdef1.o
@ -285,14 +281,16 @@ ${_src}: @/kern/makedevops.pl @/${_srcsrc}
.endfor # _ext
.endfor # _srcsrc
.if ${SRCS:Mvnode_if.[ch]} != ""
CLEANFILES+= vnode_if.c vnode_if.h
vnode_if.c vnode_if.h: @
.for _ext in c h
.if ${SRCS:Mvnode_if.${_ext}} != ""
CLEANFILES+= vnode_if.${_ext}
vnode_if.${_ext}: @
.if exists(@)
vnode_if.c vnode_if.h: @/kern/vnode_if.sh @/kern/vnode_if.src
vnode_if.${_ext}: @/kern/vnode_if.sh @/kern/vnode_if.src
.endif
sh @/kern/vnode_if.sh @/kern/vnode_if.src
perl @/kern/vnode_if.sh -${_ext} @/kern/vnode_if.src
.endif
.endfor
regress:

View File

@ -109,10 +109,6 @@ CFLAGS+= -I${.OBJDIR} -I${.OBJDIR}/@
CFLAGS+= -I${DESTDIR}/usr/include
.endif
.if defined(VFS_KLD)
SRCS+= vnode_if.h
.endif
.if ${OBJFORMAT} == elf
CLEANFILES+= setdef0.c setdef1.c setdefs.h
CLEANFILES+= setdef0.o setdef1.o
@ -285,14 +281,16 @@ ${_src}: @/kern/makedevops.pl @/${_srcsrc}
.endfor # _ext
.endfor # _srcsrc
.if ${SRCS:Mvnode_if.[ch]} != ""
CLEANFILES+= vnode_if.c vnode_if.h
vnode_if.c vnode_if.h: @
.for _ext in c h
.if ${SRCS:Mvnode_if.${_ext}} != ""
CLEANFILES+= vnode_if.${_ext}
vnode_if.${_ext}: @
.if exists(@)
vnode_if.c vnode_if.h: @/kern/vnode_if.sh @/kern/vnode_if.src
vnode_if.${_ext}: @/kern/vnode_if.sh @/kern/vnode_if.src
.endif
sh @/kern/vnode_if.sh @/kern/vnode_if.src
perl @/kern/vnode_if.sh -${_ext} @/kern/vnode_if.src
.endif
.endfor
regress: