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)
481 .elif ${MACHINE} == "pc98"
489 .if ${MACHINE_ARCH} == "amd64"
498 _ath_rate_amrr= ath_rate_amrr
499 _ath_rate_onoe= ath_rate_onoe
500 _ath_rate_sample=ath_rate_sample
526 _linprocfs= linprocfs
547 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
552 .if ${MACHINE_ARCH} == "ia64"
553 # Modules not enabled on ia64 (as compared to i386) include:
554 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
555 # nsp oltr pecoff s3 sbni stg vesa
556 # acpi is not enabled because it is broken as a module on ia64
558 #_ar= ar not 64-bit clean
582 #_sr= sr not 64bit clean
588 .if ${MACHINE_ARCH} == "powerpc"
592 _ath_rate_amrr= ath_rate_amrr
593 _ath_rate_onoe= ath_rate_onoe
594 _ath_rate_sample=ath_rate_sample
595 _nvram= powermac_nvram
599 .if ${MACHINE_ARCH} == "sparc64"
602 _ath_rate_amrr= ath_rate_amrr
603 _ath_rate_onoe= ath_rate_onoe
604 _ath_rate_sample=ath_rate_sample
611 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
612 SUBDIR=${MODULES_OVERRIDE}
615 .for reject in ${WITHOUT_MODULES}
616 SUBDIR:= ${SUBDIR:N${reject}}
619 # Calling kldxref(8) for each module is expensive.
620 .if !defined(NO_XREF)
621 .MAKEFLAGS+= -DNO_XREF
623 @if type kldxref >/dev/null 2>&1; then \
624 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
625 kldxref ${DESTDIR}${KMODDIR}; \
629 .include <bsd.subdir.mk>