307 .if ${MACHINE_ARCH} != "powerpc"
312 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
313 .if exists(${.CURDIR}/../opencrypto)
315 _cryptodev= cryptodev
317 .if exists(${.CURDIR}/../crypto)
322 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
326 .if ${MK_PF} != "no" || defined(ALL_MODULES)
331 .if ${MACHINE_ARCH} == "i386"
332 # XXX some of these can move to the general case when de-i386'ed
333 # XXX some of these can move now, but are untested on other architectures.
335 _3dfx_linux= 3dfx_linux
352 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
357 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
376 _linprocfs= linprocfs
380 .if ${MK_NCP} != "no"
386 .if ${MK_NCP} != "no"
389 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
390 _opensolaris= opensolaris
410 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
413 .if ${MACHINE} == "i386"
452 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
453 .if exists(${.CURDIR}/../crypto/via)
460 .elif ${MACHINE} == "pc98"
468 .if ${MACHINE_ARCH} == "amd64"
484 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
488 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
514 _linprocfs= linprocfs
523 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
524 _opensolaris= opensolaris
526 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
527 .if exists(${.CURDIR}/../crypto/via)
544 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
549 .if ${MACHINE_ARCH} == "ia64"
550 # Modules not enabled on ia64 (as compared to i386) include:
551 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
552 # nsp s3 sbni stg vesa
553 # acpi is not enabled because it is broken as a module on ia64
584 .if ${MACHINE_ARCH} == "powerpc"
588 _nvram= powermac_nvram
593 .if ${MACHINE_ARCH} == "sparc64"
598 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
599 _opensolaris= opensolaris
602 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
607 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
608 SUBDIR=${MODULES_OVERRIDE}
611 .for reject in ${WITHOUT_MODULES}
612 SUBDIR:= ${SUBDIR:N${reject}}
615 # Calling kldxref(8) for each module is expensive.
616 .if !defined(NO_XREF)
617 .MAKEFLAGS+= -DNO_XREF
619 @if type kldxref >/dev/null 2>&1; then \
620 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
621 kldxref ${DESTDIR}${KMODDIR}; \
625 .include <bsd.subdir.mk>