318 .if ${MACHINE_ARCH} != "powerpc"
323 .if defined(ALL_MODULES)
327 # Disabled in 7.0 as netatm is not MPSAFE.
328 #if ${MK_ATM} != "no"
332 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
333 .if exists(${.CURDIR}/../opencrypto)
335 _cryptodev= cryptodev
337 .if exists(${.CURDIR}/../crypto)
342 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
346 .if ${MK_PF} != "no" || defined(ALL_MODULES)
351 .if ${MACHINE_ARCH} == "i386"
352 # XXX some of these can move to the general case when de-i386'ed
353 # XXX some of these can move now, but are untested on other architectures.
355 _3dfx_linux= 3dfx_linux
366 _ath_rate_amrr= ath_rate_amrr
367 _ath_rate_onoe= ath_rate_onoe
368 _ath_rate_sample=ath_rate_sample
387 # Disabled due to non-MPSAFEty in 7.0
394 _linprocfs= linprocfs
398 .if ${MK_NCP} != "no"
404 .if ${MK_NCP} != "no"
428 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
431 .if ${MACHINE} == "i386"
450 # Disabled due to non-MPSAFEty in 7.0
465 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
466 .if exists(${.CURDIR}/../crypto/via)
474 .elif ${MACHINE} == "pc98"
482 .if ${MACHINE_ARCH} == "amd64"
490 _ath_rate_amrr= ath_rate_amrr
491 _ath_rate_onoe= ath_rate_onoe
492 _ath_rate_sample=ath_rate_sample
517 _linprocfs= linprocfs
537 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
542 .if ${MACHINE_ARCH} == "ia64"
543 # Modules not enabled on ia64 (as compared to i386) include:
544 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
545 # nsp oltr pecoff s3 sbni stg vesa
546 # acpi is not enabled because it is broken as a module on ia64
548 #_ar= ar not 64-bit clean
572 #_sr= sr not 64bit clean
578 .if ${MACHINE_ARCH} == "powerpc"
582 _ath_rate_amrr= ath_rate_amrr
583 _ath_rate_onoe= ath_rate_onoe
584 _ath_rate_sample=ath_rate_sample
585 _nvram= powermac_nvram
589 .if ${MACHINE_ARCH} == "sparc64"
592 _ath_rate_amrr= ath_rate_amrr
593 _ath_rate_onoe= ath_rate_onoe
594 _ath_rate_sample=ath_rate_sample
601 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
602 SUBDIR=${MODULES_OVERRIDE}
605 .for reject in ${WITHOUT_MODULES}
606 SUBDIR:= ${SUBDIR:N${reject}}
609 # Calling kldxref(8) for each module is expensive.
610 .if !defined(NO_XREF)
611 .MAKEFLAGS+= -DNO_XREF
613 @if type kldxref >/dev/null 2>&1; then \
614 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
615 kldxref ${DESTDIR}${KMODDIR}; \
619 .include <bsd.subdir.mk>