317 .if ${MACHINE_ARCH} != "powerpc"
322 .if defined(ALL_MODULES)
326 # Disabled in 7.0 as netatm is not MPSAFE.
327 #if ${MK_ATM} != "no"
331 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
332 .if exists(${.CURDIR}/../opencrypto)
334 _cryptodev= cryptodev
336 .if exists(${.CURDIR}/../crypto)
341 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
345 .if ${MK_PF} != "no" || defined(ALL_MODULES)
350 .if ${MACHINE_ARCH} == "i386"
351 # XXX some of these can move to the general case when de-i386'ed
352 # XXX some of these can move now, but are untested on other architectures.
354 _3dfx_linux= 3dfx_linux
365 _ath_rate_amrr= ath_rate_amrr
366 _ath_rate_onoe= ath_rate_onoe
367 _ath_rate_sample=ath_rate_sample
386 # Disabled due to non-MPSAFEty in 7.0
393 _linprocfs= linprocfs
397 .if ${MK_NCP} != "no"
403 .if ${MK_NCP} != "no"
427 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
430 .if ${MACHINE} == "i386"
449 # Disabled due to non-MPSAFEty in 7.0
464 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
465 .if exists(${.CURDIR}/../crypto/via)
473 .elif ${MACHINE} == "pc98"
481 .if ${MACHINE_ARCH} == "amd64"
489 _ath_rate_amrr= ath_rate_amrr
490 _ath_rate_onoe= ath_rate_onoe
491 _ath_rate_sample=ath_rate_sample
516 _linprocfs= linprocfs
536 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
541 .if ${MACHINE_ARCH} == "ia64"
542 # Modules not enabled on ia64 (as compared to i386) include:
543 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
544 # nsp oltr pecoff s3 sbni stg vesa
545 # acpi is not enabled because it is broken as a module on ia64
547 #_ar= ar not 64-bit clean
571 #_sr= sr not 64bit clean
577 .if ${MACHINE_ARCH} == "powerpc"
581 _ath_rate_amrr= ath_rate_amrr
582 _ath_rate_onoe= ath_rate_onoe
583 _ath_rate_sample=ath_rate_sample
584 _nvram= powermac_nvram
588 .if ${MACHINE_ARCH} == "sparc64"
591 _ath_rate_amrr= ath_rate_amrr
592 _ath_rate_onoe= ath_rate_onoe
593 _ath_rate_sample=ath_rate_sample
600 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
601 SUBDIR=${MODULES_OVERRIDE}
604 .for reject in ${WITHOUT_MODULES}
605 SUBDIR:= ${SUBDIR:N${reject}}
608 # Calling kldxref(8) for each module is expensive.
609 .if !defined(NO_XREF)
610 .MAKEFLAGS+= -DNO_XREF
612 @if type kldxref >/dev/null 2>&1; then \
613 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
614 kldxref ${DESTDIR}${KMODDIR}; \
618 .include <bsd.subdir.mk>