3 # oldcard -- specialized use for debugging only.
4 # owi -- totally unsupported for debugging only.
262 .if ${MACHINE_ARCH} != "sparc64"
266 .if defined(ALL_MODULES)
270 .if !defined(NO_CRYPT) || defined(ALL_MODULES)
271 .if exists(${.CURDIR}/../opencrypto)
273 _cryptodev= cryptodev
275 .if exists(${.CURDIR}/../crypto)
280 .if !defined(NO_IPFILTER) || defined(ALL_MODULES)
284 .if !defined(NO_PF) || defined(ALL_MODULES)
288 .if ${MACHINE_ARCH} == "i386"
289 # XXX some of these can move to the general case when de-i386'ed
290 # XXX some of these can move now, but are untested on other architectures.
316 _linprocfs= linprocfs
344 .if ${MACHINE} == "i386"
372 .elif ${MACHINE} == "pc98"
380 .if ${MACHINE_ARCH} == "alpha"
384 _linprocfs= linprocfs
391 .if ${MACHINE_ARCH} == "amd64"
393 #_acpi= acpi # doesn't work on amd64 yet
415 .if ${MACHINE_ARCH} == "ia64"
416 # Modules not enabled on ia64 (as compared to i386) include:
417 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
418 # nsp oltr pecoff s3 sbni stg vesa
419 # acpi is not enabled because it is broken as a module on ia64
421 #_ar= ar not 64-bit clean
445 #_sr= sr not 64bit clean
451 .if ${MACHINE_ARCH} == "powerpc"
455 .if ${MACHINE_ARCH} == "sparc64"
461 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
462 SUBDIR=${MODULES_OVERRIDE}
465 .for reject in ${WITHOUT_MODULES}
466 SUBDIR:= ${SUBDIR:N${reject}}
469 # Calling kldxref(8) for each module is expensive.
470 .if !defined(NO_XREF)
471 .MAKEFLAGS+= -DNO_XREF
473 @if type kldxref >/dev/null 2>&1; then \
474 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
475 kldxref ${DESTDIR}${KMODDIR}; \
479 .include <bsd.subdir.mk>