310 .if ${MACHINE_ARCH} != "powerpc"
315 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
316 .if exists(${.CURDIR}/../opencrypto)
318 _cryptodev= cryptodev
320 .if exists(${.CURDIR}/../crypto)
325 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
329 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
333 .if ${MK_PF} != "no" || defined(ALL_MODULES)
338 .if ${MACHINE_ARCH} == "i386"
339 # XXX some of these can move to the general case when de-i386'ed
340 # XXX some of these can move now, but are untested on other architectures.
342 _3dfx_linux= 3dfx_linux
359 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
364 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
383 _linprocfs= linprocfs
387 .if ${MK_NCP} != "no"
393 .if ${MK_NCP} != "no"
396 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
397 _opensolaris= opensolaris
417 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
420 .if ${MACHINE} == "i386"
459 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
460 .if exists(${.CURDIR}/../crypto/via)
468 .elif ${MACHINE} == "pc98"
476 .if ${MACHINE_ARCH} == "amd64"
492 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
497 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
525 _linprocfs= linprocfs
534 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
535 _opensolaris= opensolaris
537 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
538 .if exists(${.CURDIR}/../crypto/via)
559 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
564 .if ${MACHINE_ARCH} == "ia64"
565 # Modules not enabled on ia64 (as compared to i386) include:
566 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
567 # nsp s3 sbni stg vesa
568 # acpi is not enabled because it is broken as a module on ia64
599 .if ${MACHINE_ARCH} == "powerpc"
603 _nvram= powermac_nvram
608 .if ${MACHINE_ARCH} == "sparc64"
614 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
615 _opensolaris= opensolaris
618 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
623 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
624 SUBDIR=${MODULES_OVERRIDE}
627 .for reject in ${WITHOUT_MODULES}
628 SUBDIR:= ${SUBDIR:N${reject}}
631 # Calling kldxref(8) for each module is expensive.
632 .if !defined(NO_XREF)
633 .MAKEFLAGS+= -DNO_XREF
635 @if type kldxref >/dev/null 2>&1; then \
636 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
637 kldxref ${DESTDIR}${KMODDIR}; \
641 .include <bsd.subdir.mk>