322 .if ${MACHINE_ARCH} != "powerpc"
327 .if defined(ALL_MODULES)
331 # Disabled in 7.0 as netatm is not MPSAFE.
332 #if ${MK_ATM} != "no"
336 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
337 .if exists(${.CURDIR}/../opencrypto)
339 _cryptodev= cryptodev
341 .if exists(${.CURDIR}/../crypto)
346 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
350 .if ${MK_PF} != "no" || defined(ALL_MODULES)
355 .if ${MACHINE_ARCH} == "i386"
356 # XXX some of these can move to the general case when de-i386'ed
357 # XXX some of these can move now, but are untested on other architectures.
359 _3dfx_linux= 3dfx_linux
370 _ath_rate_amrr= ath_rate_amrr
371 _ath_rate_onoe= ath_rate_onoe
372 _ath_rate_sample=ath_rate_sample
391 # Disabled due to non-MPSAFEty in 7.0
398 _linprocfs= linprocfs
402 .if ${MK_NCP} != "no"
408 .if ${MK_NCP} != "no"
432 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
435 .if ${MACHINE} == "i386"
456 # Disabled due to non-MPSAFEty in 7.0
473 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
474 .if exists(${.CURDIR}/../crypto/via)
482 .elif ${MACHINE} == "pc98"
490 .if ${MACHINE_ARCH} == "amd64"
499 _ath_rate_amrr= ath_rate_amrr
500 _ath_rate_onoe= ath_rate_onoe
501 _ath_rate_sample=ath_rate_sample
527 _linprocfs= linprocfs
549 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
554 .if ${MACHINE_ARCH} == "ia64"
555 # Modules not enabled on ia64 (as compared to i386) include:
556 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
557 # nsp oltr pecoff s3 sbni stg vesa
558 # acpi is not enabled because it is broken as a module on ia64
560 #_ar= ar not 64-bit clean
584 #_sr= sr not 64bit clean
590 .if ${MACHINE_ARCH} == "powerpc"
594 _ath_rate_amrr= ath_rate_amrr
595 _ath_rate_onoe= ath_rate_onoe
596 _ath_rate_sample=ath_rate_sample
597 _nvram= powermac_nvram
601 .if ${MACHINE_ARCH} == "sparc64"
604 _ath_rate_amrr= ath_rate_amrr
605 _ath_rate_onoe= ath_rate_onoe
606 _ath_rate_sample=ath_rate_sample
613 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
614 SUBDIR=${MODULES_OVERRIDE}
617 .for reject in ${WITHOUT_MODULES}
618 SUBDIR:= ${SUBDIR:N${reject}}
621 # Calling kldxref(8) for each module is expensive.
622 .if !defined(NO_XREF)
623 .MAKEFLAGS+= -DNO_XREF
625 @if type kldxref >/dev/null 2>&1; then \
626 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
627 kldxref ${DESTDIR}${KMODDIR}; \
631 .include <bsd.subdir.mk>