333 .if ${MACHINE_ARCH} != "powerpc"
338 .if defined(ALL_MODULES)
342 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
343 .if exists(${.CURDIR}/../opencrypto)
345 _cryptodev= cryptodev
347 .if exists(${.CURDIR}/../crypto)
352 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
356 .if ${MK_PF} != "no" || defined(ALL_MODULES)
361 .if ${MACHINE_ARCH} == "i386"
362 # XXX some of these can move to the general case when de-i386'ed
363 # XXX some of these can move now, but are untested on other architectures.
365 _3dfx_linux= 3dfx_linux
376 _ath_rate_amrr= ath_rate_amrr
377 _ath_rate_onoe= ath_rate_onoe
378 _ath_rate_sample=ath_rate_sample
387 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
392 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
409 _linprocfs= linprocfs
413 .if ${MK_NCP} != "no"
419 .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"
488 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
489 .if exists(${.CURDIR}/../crypto/via)
496 .elif ${MACHINE} == "pc98"
504 .if ${MACHINE_ARCH} == "amd64"
513 _ath_rate_amrr= ath_rate_amrr
514 _ath_rate_onoe= ath_rate_onoe
515 _ath_rate_sample=ath_rate_sample
522 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
527 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
553 _linprocfs= linprocfs
562 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
563 _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 oltr 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
632 .if ${MACHINE_ARCH} == "sparc64"
635 _ath_rate_amrr= ath_rate_amrr
636 _ath_rate_onoe= ath_rate_onoe
637 _ath_rate_sample=ath_rate_sample
643 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
648 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
649 SUBDIR=${MODULES_OVERRIDE}
652 .for reject in ${WITHOUT_MODULES}
653 SUBDIR:= ${SUBDIR:N${reject}}
656 # Calling kldxref(8) for each module is expensive.
657 .if !defined(NO_XREF)
658 .MAKEFLAGS+= -DNO_XREF
660 @if type kldxref >/dev/null 2>&1; then \
661 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
662 kldxref ${DESTDIR}${KMODDIR}; \
666 .include <bsd.subdir.mk>