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_NETGRAPH} != "no" || defined(ALL_MODULES)
331 .if ${MK_PF} != "no" || defined(ALL_MODULES)
336 .if ${MACHINE_ARCH} == "i386"
337 # XXX some of these can move to the general case when de-i386'ed
338 # XXX some of these can move now, but are untested on other architectures.
340 _3dfx_linux= 3dfx_linux
357 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
362 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
381 _linprocfs= linprocfs
385 .if ${MK_NCP} != "no"
391 .if ${MK_NCP} != "no"
394 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
395 _opensolaris= opensolaris
415 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
418 .if ${MACHINE} == "i386"
457 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
458 .if exists(${.CURDIR}/../crypto/via)
465 .elif ${MACHINE} == "pc98"
473 .if ${MACHINE_ARCH} == "amd64"
489 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
493 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
521 _linprocfs= linprocfs
530 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
531 _opensolaris= opensolaris
533 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
534 .if exists(${.CURDIR}/../crypto/via)
551 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
556 .if ${MACHINE_ARCH} == "ia64"
557 # Modules not enabled on ia64 (as compared to i386) include:
558 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
559 # nsp s3 sbni stg vesa
560 # acpi is not enabled because it is broken as a module on ia64
591 .if ${MACHINE_ARCH} == "powerpc"
595 _nvram= powermac_nvram
600 .if ${MACHINE_ARCH} == "sparc64"
606 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
607 _opensolaris= opensolaris
610 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
615 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
616 SUBDIR=${MODULES_OVERRIDE}
619 .for reject in ${WITHOUT_MODULES}
620 SUBDIR:= ${SUBDIR:N${reject}}
623 # Calling kldxref(8) for each module is expensive.
624 .if !defined(NO_XREF)
625 .MAKEFLAGS+= -DNO_XREF
627 @if type kldxref >/dev/null 2>&1; then \
628 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
629 kldxref ${DESTDIR}${KMODDIR}; \
633 .include <bsd.subdir.mk>