add variables MODLOAD and MODUNLOAD for modlad/modunload commands

This commit is contained in:
Wolfram Schneider 1996-10-06 22:10:35 +00:00
parent 69d16a72e4
commit 7bc830bb88
2 changed files with 22 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.25 1996/08/31 14:46:58 bde Exp $
# $Id: bsd.kmod.mk,v 1.26 1996/09/18 06:09:13 swallace Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@ -37,10 +37,14 @@
#
# LN_FLAGS Flags for ln(1) (see variable LINKS)
#
# MODLOAD Command to load a kernel module [/sbin/modload]
#
# MODUNLOAD Command to unload a kernel module [/sbin/modunload]
#
# NOMAN LKM does not have a manual page if set.
#
# PROG The name of the loadable kernel module to build.
# If not supplied, ${KMOD} is used.
# If not supplied, ${KMOD}.o is used.
#
# PSEUDO_LKM ???
#
@ -80,6 +84,9 @@
# bsd.man.mk: maninstall
#
MODLOAD?= /sbin/modload
MODUNLOAD?= /sbin/modunload
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
@ -193,12 +200,12 @@ tags: ${SRCS} _SUBDIR
.if !target(load)
load: ${PROG}
/sbin/modload -o ${KMOD} -e${KMOD} ${PROG}
${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG}
.endif
.if !target(unload)
unload: ${PROG}
/sbin/modunload -n ${KMOD}
${MODUNLOAD} -n ${KMOD}
.endif
KERN= ${.CURDIR}/../../sys/kern

View File

@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.kmod.mk,v 1.25 1996/08/31 14:46:58 bde Exp $
# $Id: bsd.kmod.mk,v 1.26 1996/09/18 06:09:13 swallace Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@ -37,10 +37,14 @@
#
# LN_FLAGS Flags for ln(1) (see variable LINKS)
#
# MODLOAD Command to load a kernel module [/sbin/modload]
#
# MODUNLOAD Command to unload a kernel module [/sbin/modunload]
#
# NOMAN LKM does not have a manual page if set.
#
# PROG The name of the loadable kernel module to build.
# If not supplied, ${KMOD} is used.
# If not supplied, ${KMOD}.o is used.
#
# PSEUDO_LKM ???
#
@ -80,6 +84,9 @@
# bsd.man.mk: maninstall
#
MODLOAD?= /sbin/modload
MODUNLOAD?= /sbin/modunload
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
@ -193,12 +200,12 @@ tags: ${SRCS} _SUBDIR
.if !target(load)
load: ${PROG}
/sbin/modload -o ${KMOD} -e${KMOD} ${PROG}
${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG}
.endif
.if !target(unload)
unload: ${PROG}
/sbin/modunload -n ${KMOD}
${MODUNLOAD} -n ${KMOD}
.endif
KERN= ${.CURDIR}/../../sys/kern