331 .if ${MACHINE_ARCH} != "powerpc"
336 .if defined(ALL_MODULES)
340 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
341 .if exists(${.CURDIR}/../opencrypto)
343 _cryptodev= cryptodev
345 .if exists(${.CURDIR}/../crypto)
350 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
354 .if ${MK_PF} != "no" || defined(ALL_MODULES)
359 .if ${MACHINE_ARCH} == "i386"
360 # XXX some of these can move to the general case when de-i386'ed
361 # XXX some of these can move now, but are untested on other architectures.
363 _3dfx_linux= 3dfx_linux
374 _ath_rate_amrr= ath_rate_amrr
375 _ath_rate_onoe= ath_rate_onoe
376 _ath_rate_sample=ath_rate_sample
385 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
390 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
406 _linprocfs= linprocfs
410 .if ${MK_NCP} != "no"
416 .if ${MK_NCP} != "no"
420 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
421 _opensolaris= opensolaris
444 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
447 .if ${MACHINE} == "i386"
486 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
487 .if exists(${.CURDIR}/../crypto/via)
494 .elif ${MACHINE} == "pc98"
502 .if ${MACHINE_ARCH} == "amd64"
511 _ath_rate_amrr= ath_rate_amrr
512 _ath_rate_onoe= ath_rate_onoe
513 _ath_rate_sample=ath_rate_sample
520 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
525 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
550 _linprocfs= linprocfs
559 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
560 _opensolaris= opensolaris
575 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
580 .if ${MACHINE_ARCH} == "ia64"
581 # Modules not enabled on ia64 (as compared to i386) include:
582 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
583 # nsp oltr pecoff s3 sbni stg vesa
584 # acpi is not enabled because it is broken as a module on ia64
586 #_ar= ar not 64-bit clean
611 #_sr= sr not 64bit clean
617 .if ${MACHINE_ARCH} == "powerpc"
621 _ath_rate_amrr= ath_rate_amrr
622 _ath_rate_onoe= ath_rate_onoe
623 _ath_rate_sample=ath_rate_sample
624 _nvram= powermac_nvram
628 .if ${MACHINE_ARCH} == "sparc64"
631 _ath_rate_amrr= ath_rate_amrr
632 _ath_rate_onoe= ath_rate_onoe
633 _ath_rate_sample=ath_rate_sample
639 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
644 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
645 SUBDIR=${MODULES_OVERRIDE}
648 .for reject in ${WITHOUT_MODULES}
649 SUBDIR:= ${SUBDIR:N${reject}}
652 # Calling kldxref(8) for each module is expensive.
653 .if !defined(NO_XREF)
654 .MAKEFLAGS+= -DNO_XREF
656 @if type kldxref >/dev/null 2>&1; then \
657 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
658 kldxref ${DESTDIR}${KMODDIR}; \
662 .include <bsd.subdir.mk>