325 .if ${MACHINE_ARCH} != "powerpc"
330 .if defined(ALL_MODULES)
334 # Disabled in 7.0 as netatm is not MPSAFE.
335 #if ${MK_ATM} != "no"
339 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
340 .if exists(${.CURDIR}/../opencrypto)
342 _cryptodev= cryptodev
344 .if exists(${.CURDIR}/../crypto)
349 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
353 .if ${MK_PF} != "no" || defined(ALL_MODULES)
358 .if ${MACHINE_ARCH} == "i386"
359 # XXX some of these can move to the general case when de-i386'ed
360 # XXX some of these can move now, but are untested on other architectures.
362 _3dfx_linux= 3dfx_linux
373 _ath_rate_amrr= ath_rate_amrr
374 _ath_rate_onoe= ath_rate_onoe
375 _ath_rate_sample=ath_rate_sample
394 # Disabled due to non-MPSAFEty in 7.0
402 _linprocfs= linprocfs
406 .if ${MK_NCP} != "no"
412 .if ${MK_NCP} != "no"
436 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
439 .if ${MACHINE} == "i386"
461 # Disabled due to non-MPSAFEty in 7.0
478 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
479 .if exists(${.CURDIR}/../crypto/via)
486 .elif ${MACHINE} == "pc98"
494 .if ${MACHINE_ARCH} == "amd64"
503 _ath_rate_amrr= ath_rate_amrr
504 _ath_rate_onoe= ath_rate_onoe
505 _ath_rate_sample=ath_rate_sample
533 _linprocfs= linprocfs
554 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
559 .if ${MACHINE_ARCH} == "ia64"
560 # Modules not enabled on ia64 (as compared to i386) include:
561 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
562 # nsp oltr pecoff s3 sbni stg vesa
563 # acpi is not enabled because it is broken as a module on ia64
565 #_ar= ar not 64-bit clean
591 #_sr= sr not 64bit clean
597 .if ${MACHINE_ARCH} == "powerpc"
601 _ath_rate_amrr= ath_rate_amrr
602 _ath_rate_onoe= ath_rate_onoe
603 _ath_rate_sample=ath_rate_sample
604 _nvram= powermac_nvram
608 .if ${MACHINE_ARCH} == "sparc64"
611 _ath_rate_amrr= ath_rate_amrr
612 _ath_rate_onoe= ath_rate_onoe
613 _ath_rate_sample=ath_rate_sample
621 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
622 SUBDIR=${MODULES_OVERRIDE}
625 .for reject in ${WITHOUT_MODULES}
626 SUBDIR:= ${SUBDIR:N${reject}}
629 # Calling kldxref(8) for each module is expensive.
630 .if !defined(NO_XREF)
631 .MAKEFLAGS+= -DNO_XREF
633 @if type kldxref >/dev/null 2>&1; then \
634 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
635 kldxref ${DESTDIR}${KMODDIR}; \
639 .include <bsd.subdir.mk>