Recognize MKMODULAR and build the appropriate tool.

This commit is contained in:
jmmv 2008-02-09 19:33:00 +00:00
parent c2ae0da603
commit 8983cf2933
2 changed files with 8 additions and 6 deletions

View File

@ -1,13 +1,13 @@
# $NetBSD: Makefile,v 1.9 2008/01/16 12:34:58 ad Exp $
# $NetBSD: Makefile,v 1.10 2008/02/09 19:33:00 jmmv Exp $
.if ("1" == "1") # LKMS
.include <bsd.own.mk>
.if ${MKMODULAR} != "no" # LKMS
PROG= modload
SRCS= modload.c
MAN= modload.8
.include <bsd.own.mk> # for OBJECT_FMT
.if (${OBJECT_FMT} == "ELF")
SRCS+= elf.c
.else

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2008/01/16 12:34:58 ad Exp $
# $NetBSD: Makefile,v 1.10 2008/02/09 19:33:00 jmmv Exp $
#
# Makefile for modunload
#
@ -34,7 +34,9 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
.if ("1" == "1") # LKMs
.include <bsd.own.mk>
.if ${MKMODULAR} != "no" # LKMs
PROG= modunload
MAN= modunload.8