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
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"
449 # Disabled due to non-MPSAFEty in 7.0
463 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
464 .if exists(${.CURDIR}/../crypto/via)
472 .elif ${MACHINE} == "pc98"
480 .if ${MACHINE_ARCH} == "amd64"
488 _ath_rate_amrr= ath_rate_amrr
489 _ath_rate_onoe= ath_rate_onoe
490 _ath_rate_sample=ath_rate_sample
515 _linprocfs= linprocfs
534 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
539 .if ${MACHINE_ARCH} == "ia64"
540 # Modules not enabled on ia64 (as compared to i386) include:
541 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
542 # nsp oltr pecoff s3 sbni stg vesa
543 # acpi is not enabled because it is broken as a module on ia64
545 #_ar= ar not 64-bit clean
569 #_sr= sr not 64bit clean
575 .if ${MACHINE_ARCH} == "powerpc"
579 _ath_rate_amrr= ath_rate_amrr
580 _ath_rate_onoe= ath_rate_onoe
581 _ath_rate_sample=ath_rate_sample
583 _powermac_nvram= powermac_nvram
587 .if ${MACHINE_ARCH} == "sparc64"
590 _ath_rate_amrr= ath_rate_amrr
591 _ath_rate_onoe= ath_rate_onoe
592 _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>