332 .if ${MACHINE_ARCH} != "powerpc"
337 .if defined(ALL_MODULES)
341 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
342 .if exists(${.CURDIR}/../opencrypto)
344 _cryptodev= cryptodev
346 .if exists(${.CURDIR}/../crypto)
351 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
355 .if ${MK_PF} != "no" || defined(ALL_MODULES)
360 .if ${MACHINE_ARCH} == "i386"
361 # XXX some of these can move to the general case when de-i386'ed
362 # XXX some of these can move now, but are untested on other architectures.
364 _3dfx_linux= 3dfx_linux
375 _ath_rate_amrr= ath_rate_amrr
376 _ath_rate_onoe= ath_rate_onoe
377 _ath_rate_sample=ath_rate_sample
387 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
392 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
410 _linprocfs= linprocfs
414 .if ${MK_NCP} != "no"
420 .if ${MK_NCP} != "no"
423 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
424 _opensolaris= opensolaris
446 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
449 .if ${MACHINE} == "i386"
487 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
488 .if exists(${.CURDIR}/../crypto/via)
495 .elif ${MACHINE} == "pc98"
503 .if ${MACHINE_ARCH} == "amd64"
512 _ath_rate_amrr= ath_rate_amrr
513 _ath_rate_onoe= ath_rate_onoe
514 _ath_rate_sample=ath_rate_sample
522 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
526 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
552 _linprocfs= linprocfs
561 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
562 _opensolaris= opensolaris
578 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
583 .if ${MACHINE_ARCH} == "ia64"
584 # Modules not enabled on ia64 (as compared to i386) include:
585 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
586 # nsp s3 sbni stg vesa
587 # acpi is not enabled because it is broken as a module on ia64
589 #_ar= ar not 64-bit clean
614 #_sr= sr not 64bit clean
620 .if ${MACHINE_ARCH} == "powerpc"
624 _ath_rate_amrr= ath_rate_amrr
625 _ath_rate_onoe= ath_rate_onoe
626 _ath_rate_sample=ath_rate_sample
628 _nvram= powermac_nvram
633 .if ${MACHINE_ARCH} == "sparc64"
636 _ath_rate_amrr= ath_rate_amrr
637 _ath_rate_onoe= ath_rate_onoe
638 _ath_rate_sample=ath_rate_sample
645 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
650 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
651 SUBDIR=${MODULES_OVERRIDE}
654 .for reject in ${WITHOUT_MODULES}
655 SUBDIR:= ${SUBDIR:N${reject}}
658 # Calling kldxref(8) for each module is expensive.
659 .if !defined(NO_XREF)
660 .MAKEFLAGS+= -DNO_XREF
662 @if type kldxref >/dev/null 2>&1; then \
663 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
664 kldxref ${DESTDIR}${KMODDIR}; \
668 .include <bsd.subdir.mk>