334 .if ${MACHINE_ARCH} != "powerpc"
339 .if defined(ALL_MODULES)
343 # Disabled in 7.0 as netatm is not MPSAFE.
344 #if ${MK_ATM} != "no"
348 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
349 .if exists(${.CURDIR}/../opencrypto)
351 _cryptodev= cryptodev
353 .if exists(${.CURDIR}/../crypto)
358 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
362 .if ${MK_PF} != "no" || defined(ALL_MODULES)
367 .if ${MACHINE_ARCH} == "i386"
368 # XXX some of these can move to the general case when de-i386'ed
369 # XXX some of these can move now, but are untested on other architectures.
371 _3dfx_linux= 3dfx_linux
382 _ath_rate_amrr= ath_rate_amrr
383 _ath_rate_onoe= ath_rate_onoe
384 _ath_rate_sample=ath_rate_sample
393 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
398 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
408 # Disabled due to non-MPSAFEty in 7.0
416 _linprocfs= linprocfs
420 .if ${MK_NCP} != "no"
426 .if ${MK_NCP} != "no"
430 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
431 _opensolaris= opensolaris
454 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
457 .if ${MACHINE} == "i386"
479 # Disabled due to non-MPSAFEty in 7.0
498 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
499 .if exists(${.CURDIR}/../crypto/via)
506 .elif ${MACHINE} == "pc98"
514 .if ${MACHINE_ARCH} == "amd64"
523 _ath_rate_amrr= ath_rate_amrr
524 _ath_rate_onoe= ath_rate_onoe
525 _ath_rate_sample=ath_rate_sample
532 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
537 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
562 _linprocfs= linprocfs
571 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
572 _opensolaris= opensolaris
587 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
592 .if ${MACHINE_ARCH} == "ia64"
593 # Modules not enabled on ia64 (as compared to i386) include:
594 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
595 # nsp oltr pecoff s3 sbni stg vesa
596 # acpi is not enabled because it is broken as a module on ia64
598 #_ar= ar not 64-bit clean
624 #_sr= sr not 64bit clean
630 .if ${MACHINE_ARCH} == "powerpc"
634 _ath_rate_amrr= ath_rate_amrr
635 _ath_rate_onoe= ath_rate_onoe
636 _ath_rate_sample=ath_rate_sample
637 _nvram= powermac_nvram
641 .if ${MACHINE_ARCH} == "sparc64"
644 _ath_rate_amrr= ath_rate_amrr
645 _ath_rate_onoe= ath_rate_onoe
646 _ath_rate_sample=ath_rate_sample
652 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
657 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
658 SUBDIR=${MODULES_OVERRIDE}
661 .for reject in ${WITHOUT_MODULES}
662 SUBDIR:= ${SUBDIR:N${reject}}
665 # Calling kldxref(8) for each module is expensive.
666 .if !defined(NO_XREF)
667 .MAKEFLAGS+= -DNO_XREF
669 @if type kldxref >/dev/null 2>&1; then \
670 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
671 kldxref ${DESTDIR}${KMODDIR}; \
675 .include <bsd.subdir.mk>