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_PF} != "no" || defined(ALL_MODULES)
334 .if ${MACHINE_ARCH} == "i386"
335 # XXX some of these can move to the general case when de-i386'ed
336 # XXX some of these can move now, but are untested on other architectures.
338 _3dfx_linux= 3dfx_linux
355 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
360 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
379 _linprocfs= linprocfs
383 .if ${MK_NCP} != "no"
389 .if ${MK_NCP} != "no"
392 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
393 _opensolaris= opensolaris
413 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
416 .if ${MACHINE} == "i386"
455 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
456 .if exists(${.CURDIR}/../crypto/via)
464 .elif ${MACHINE} == "pc98"
472 .if ${MACHINE_ARCH} == "amd64"
488 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
493 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
519 _linprocfs= linprocfs
528 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
529 _opensolaris= opensolaris
531 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
532 .if exists(${.CURDIR}/../crypto/via)
553 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
558 .if ${MACHINE_ARCH} == "ia64"
559 # Modules not enabled on ia64 (as compared to i386) include:
560 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
561 # nsp s3 sbni stg vesa
562 # acpi is not enabled because it is broken as a module on ia64
593 .if ${MACHINE_ARCH} == "powerpc"
597 _nvram= powermac_nvram
602 .if ${MACHINE_ARCH} == "sparc64"
607 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
608 _opensolaris= opensolaris
611 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
616 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
617 SUBDIR=${MODULES_OVERRIDE}
620 .for reject in ${WITHOUT_MODULES}
621 SUBDIR:= ${SUBDIR:N${reject}}
624 # Calling kldxref(8) for each module is expensive.
625 .if !defined(NO_XREF)
626 .MAKEFLAGS+= -DNO_XREF
628 @if type kldxref >/dev/null 2>&1; then \
629 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
630 kldxref ${DESTDIR}${KMODDIR}; \
634 .include <bsd.subdir.mk>