308 .if ${MACHINE_ARCH} != "powerpc"
313 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
314 .if exists(${.CURDIR}/../opencrypto)
316 _cryptodev= cryptodev
318 .if exists(${.CURDIR}/../crypto)
323 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
327 .if ${MK_PF} != "no" || defined(ALL_MODULES)
332 .if ${MACHINE_ARCH} == "i386"
333 # XXX some of these can move to the general case when de-i386'ed
334 # XXX some of these can move now, but are untested on other architectures.
336 _3dfx_linux= 3dfx_linux
353 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
358 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
377 _linprocfs= linprocfs
381 .if ${MK_NCP} != "no"
387 .if ${MK_NCP} != "no"
390 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
391 _opensolaris= opensolaris
411 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
414 .if ${MACHINE} == "i386"
453 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
454 .if exists(${.CURDIR}/../crypto/via)
461 .elif ${MACHINE} == "pc98"
469 .if ${MACHINE_ARCH} == "amd64"
485 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
489 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
515 _linprocfs= linprocfs
524 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
525 _opensolaris= opensolaris
527 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
528 .if exists(${.CURDIR}/../crypto/via)
545 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
550 .if ${MACHINE_ARCH} == "ia64"
551 # Modules not enabled on ia64 (as compared to i386) include:
552 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
553 # nsp s3 sbni stg vesa
554 # acpi is not enabled because it is broken as a module on ia64
585 .if ${MACHINE_ARCH} == "powerpc"
589 _nvram= powermac_nvram
594 .if ${MACHINE_ARCH} == "sparc64"
600 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
601 _opensolaris= opensolaris
604 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
609 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
610 SUBDIR=${MODULES_OVERRIDE}
613 .for reject in ${WITHOUT_MODULES}
614 SUBDIR:= ${SUBDIR:N${reject}}
617 # Calling kldxref(8) for each module is expensive.
618 .if !defined(NO_XREF)
619 .MAKEFLAGS+= -DNO_XREF
621 @if type kldxref >/dev/null 2>&1; then \
622 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
623 kldxref ${DESTDIR}${KMODDIR}; \
627 .include <bsd.subdir.mk>