305 .if ${MACHINE_ARCH} != "powerpc"
310 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
311 .if exists(${.CURDIR}/../opencrypto)
313 _cryptodev= cryptodev
315 .if exists(${.CURDIR}/../crypto)
320 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
324 .if ${MK_PF} != "no" || defined(ALL_MODULES)
329 .if ${MACHINE_ARCH} == "i386"
330 # XXX some of these can move to the general case when de-i386'ed
331 # XXX some of these can move now, but are untested on other architectures.
333 _3dfx_linux= 3dfx_linux
350 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
355 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
373 _linprocfs= linprocfs
377 .if ${MK_NCP} != "no"
383 .if ${MK_NCP} != "no"
386 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
387 _opensolaris= opensolaris
407 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
410 .if ${MACHINE} == "i386"
448 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
449 .if exists(${.CURDIR}/../crypto/via)
456 .elif ${MACHINE} == "pc98"
464 .if ${MACHINE_ARCH} == "amd64"
479 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
483 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
508 _linprocfs= linprocfs
517 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
518 _opensolaris= opensolaris
520 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
521 .if exists(${.CURDIR}/../crypto/via)
538 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
543 .if ${MACHINE_ARCH} == "ia64"
544 # Modules not enabled on ia64 (as compared to i386) include:
545 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
546 # nsp s3 sbni stg vesa
547 # acpi is not enabled because it is broken as a module on ia64
578 .if ${MACHINE_ARCH} == "powerpc"
582 _nvram= powermac_nvram
587 .if ${MACHINE_ARCH} == "sparc64"
592 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
593 _opensolaris= opensolaris
596 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
601 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
602 SUBDIR=${MODULES_OVERRIDE}
605 .for reject in ${WITHOUT_MODULES}
606 SUBDIR:= ${SUBDIR:N${reject}}
609 # Calling kldxref(8) for each module is expensive.
610 .if !defined(NO_XREF)
611 .MAKEFLAGS+= -DNO_XREF
613 @if type kldxref >/dev/null 2>&1; then \
614 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
615 kldxref ${DESTDIR}${KMODDIR}; \
619 .include <bsd.subdir.mk>