329 .if ${MACHINE_ARCH} != "powerpc"
334 .if defined(ALL_MODULES)
338 # Disabled in 7.0 as netatm is not MPSAFE.
339 #if ${MK_ATM} != "no"
343 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
344 .if exists(${.CURDIR}/../opencrypto)
346 _cryptodev= cryptodev
348 .if exists(${.CURDIR}/../crypto)
353 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
357 .if ${MK_PF} != "no" || defined(ALL_MODULES)
362 .if ${MACHINE_ARCH} == "i386"
363 # XXX some of these can move to the general case when de-i386'ed
364 # XXX some of these can move now, but are untested on other architectures.
366 _3dfx_linux= 3dfx_linux
377 _ath_rate_amrr= ath_rate_amrr
378 _ath_rate_onoe= ath_rate_onoe
379 _ath_rate_sample=ath_rate_sample
398 # Disabled due to non-MPSAFEty in 7.0
406 _linprocfs= linprocfs
410 .if ${MK_NCP} != "no"
416 .if ${MK_NCP} != "no"
440 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
443 .if ${MACHINE} == "i386"
465 # Disabled due to non-MPSAFEty in 7.0
482 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
483 .if exists(${.CURDIR}/../crypto/via)
490 .elif ${MACHINE} == "pc98"
498 .if ${MACHINE_ARCH} == "amd64"
507 _ath_rate_amrr= ath_rate_amrr
508 _ath_rate_onoe= ath_rate_onoe
509 _ath_rate_sample=ath_rate_sample
538 _linprocfs= linprocfs
559 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
564 .if ${MACHINE_ARCH} == "ia64"
565 # Modules not enabled on ia64 (as compared to i386) include:
566 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
567 # nsp oltr pecoff s3 sbni stg vesa
568 # acpi is not enabled because it is broken as a module on ia64
570 #_ar= ar not 64-bit clean
596 #_sr= sr not 64bit clean
602 .if ${MACHINE_ARCH} == "powerpc"
606 _ath_rate_amrr= ath_rate_amrr
607 _ath_rate_onoe= ath_rate_onoe
608 _ath_rate_sample=ath_rate_sample
609 _nvram= powermac_nvram
613 .if ${MACHINE_ARCH} == "sparc64"
616 _ath_rate_amrr= ath_rate_amrr
617 _ath_rate_onoe= ath_rate_onoe
618 _ath_rate_sample=ath_rate_sample
624 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
629 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
630 SUBDIR=${MODULES_OVERRIDE}
633 .for reject in ${WITHOUT_MODULES}
634 SUBDIR:= ${SUBDIR:N${reject}}
637 # Calling kldxref(8) for each module is expensive.
638 .if !defined(NO_XREF)
639 .MAKEFLAGS+= -DNO_XREF
641 @if type kldxref >/dev/null 2>&1; then \
642 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
643 kldxref ${DESTDIR}${KMODDIR}; \
647 .include <bsd.subdir.mk>