321 .if ${MACHINE_ARCH} != "powerpc"
326 .if defined(ALL_MODULES)
330 # Disabled in 7.0 as netatm is not MPSAFE.
331 #if ${MK_ATM} != "no"
335 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
336 .if exists(${.CURDIR}/../opencrypto)
338 _cryptodev= cryptodev
340 .if exists(${.CURDIR}/../crypto)
345 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
349 .if ${MK_PF} != "no" || defined(ALL_MODULES)
354 .if ${MACHINE_ARCH} == "i386"
355 # XXX some of these can move to the general case when de-i386'ed
356 # XXX some of these can move now, but are untested on other architectures.
358 _3dfx_linux= 3dfx_linux
369 _ath_rate_amrr= ath_rate_amrr
370 _ath_rate_onoe= ath_rate_onoe
371 _ath_rate_sample=ath_rate_sample
390 # Disabled due to non-MPSAFEty in 7.0
397 _linprocfs= linprocfs
401 .if ${MK_NCP} != "no"
407 .if ${MK_NCP} != "no"
431 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
434 .if ${MACHINE} == "i386"
454 # Disabled due to non-MPSAFEty in 7.0
471 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
472 .if exists(${.CURDIR}/../crypto/via)
480 .elif ${MACHINE} == "pc98"
488 .if ${MACHINE_ARCH} == "amd64"
497 _ath_rate_amrr= ath_rate_amrr
498 _ath_rate_onoe= ath_rate_onoe
499 _ath_rate_sample=ath_rate_sample
524 _linprocfs= linprocfs
546 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
551 .if ${MACHINE_ARCH} == "ia64"
552 # Modules not enabled on ia64 (as compared to i386) include:
553 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
554 # nsp oltr pecoff s3 sbni stg vesa
555 # acpi is not enabled because it is broken as a module on ia64
557 #_ar= ar not 64-bit clean
581 #_sr= sr not 64bit clean
587 .if ${MACHINE_ARCH} == "powerpc"
591 _ath_rate_amrr= ath_rate_amrr
592 _ath_rate_onoe= ath_rate_onoe
593 _ath_rate_sample=ath_rate_sample
594 _nvram= powermac_nvram
598 .if ${MACHINE_ARCH} == "sparc64"
601 _ath_rate_amrr= ath_rate_amrr
602 _ath_rate_onoe= ath_rate_onoe
603 _ath_rate_sample=ath_rate_sample
610 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
611 SUBDIR=${MODULES_OVERRIDE}
614 .for reject in ${WITHOUT_MODULES}
615 SUBDIR:= ${SUBDIR:N${reject}}
618 # Calling kldxref(8) for each module is expensive.
619 .if !defined(NO_XREF)
620 .MAKEFLAGS+= -DNO_XREF
622 @if type kldxref >/dev/null 2>&1; then \
623 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
624 kldxref ${DESTDIR}${KMODDIR}; \
628 .include <bsd.subdir.mk>