aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2000-04-05 10:13:05 +0000
committerDoug Rabson <dfr@FreeBSD.org>2000-04-05 10:13:05 +0000
commit7fecffec3def2fb5d6e0a966b0e0dc3f8a82bc68 (patch)
tree42702c17384388422164f97f96c844dad37325cc /share/mk/bsd.kmod.mk
parent91cc2995af10b89b972c6a10a1140350c247d31e (diff)
downloadsrc-7fecffec3def2fb5d6e0a966b0e0dc3f8a82bc68.tar.gz
src-7fecffec3def2fb5d6e0a966b0e0dc3f8a82bc68.zip
Allow the calling Makefile to specify a list of device interfaces instead
of relying on the default list provided here.
Notes
Notes: svn path=/head/; revision=59032
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 3cafc330dcba..936ffdf66551 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -52,6 +52,8 @@
#
# DESTDIR, DISTDIR are set by other Makefiles (e.g. bsd.own.mk)
#
+# MFILES Optionally a list of interfaces used by the module.
+# This file contains a default list of interfaces.
#
# +++ targets +++
#
@@ -278,10 +280,12 @@ ${_src}:
.endif
.endfor
-.for _srcsrc in kern/bus_if.m kern/device_if.m dev/iicbus/iicbb_if.m \
+MFILES?= kern/bus_if.m kern/device_if.m dev/iicbus/iicbb_if.m \
dev/iicbus/iicbus_if.m isa/isa_if.m dev/mii/miibus_if.m \
dev/pccard/card_if.m dev/pccard/power_if.m pci/pci_if.m \
dev/ppbus/ppbus_if.m dev/smbus/smbus_if.m dev/usb/usb_if.m
+
+.for _srcsrc in ${MFILES}
.for _ext in c h
.for _src in ${SRCS:M${_srcsrc:T:R}.${_ext}}
CLEANFILES+= ${_src}