338 .if ${MACHINE_ARCH} != "powerpc"
343 .if defined(ALL_MODULES)
347 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
348 .if exists(${.CURDIR}/../opencrypto)
350 _cryptodev= cryptodev
352 .if exists(${.CURDIR}/../crypto)
357 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
361 .if ${MK_PF} != "no" || defined(ALL_MODULES)
366 .if ${MACHINE_ARCH} == "i386"
367 # XXX some of these can move to the general case when de-i386'ed
368 # XXX some of these can move now, but are untested on other architectures.
370 _3dfx_linux= 3dfx_linux
389 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
395 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
413 _linprocfs= linprocfs
417 .if ${MK_NCP} != "no"
423 .if ${MK_NCP} != "no"
427 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
428 _opensolaris= opensolaris
451 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
454 .if ${MACHINE} == "i386"
490 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
491 .if exists(${.CURDIR}/../crypto/via)
498 .elif ${MACHINE} == "pc98"
506 .if ${MACHINE_ARCH} == "amd64"
519 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
524 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
548 _linprocfs= linprocfs
557 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
558 _opensolaris= opensolaris
573 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
578 .if ${MACHINE_ARCH} == "ia64"
579 # Modules not enabled on ia64 (as compared to i386) include:
580 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
581 # nsp oltr pecoff s3 sbni stg vesa
582 # acpi is not enabled because it is broken as a module on ia64
584 #_ar= ar not 64-bit clean
609 #_sr= sr not 64bit clean
615 .if ${MACHINE_ARCH} == "powerpc"
618 _nvram= powermac_nvram
622 .if ${MACHINE_ARCH} == "sparc64"
627 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
628 _opensolaris= opensolaris
631 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
636 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
637 SUBDIR=${MODULES_OVERRIDE}
640 .for reject in ${WITHOUT_MODULES}
641 SUBDIR:= ${SUBDIR:N${reject}}
644 # Calling kldxref(8) for each module is expensive.
645 .if !defined(NO_XREF)
646 .MAKEFLAGS+= -DNO_XREF
648 @if type kldxref >/dev/null 2>&1; then \
649 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
650 kldxref ${DESTDIR}${KMODDIR}; \
654 .include <bsd.subdir.mk>