309 .if ${MACHINE_ARCH} != "powerpc"
314 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
315 .if exists(${.CURDIR}/../opencrypto)
317 _cryptodev= cryptodev
319 .if exists(${.CURDIR}/../crypto)
324 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
328 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
332 .if ${MK_PF} != "no" || defined(ALL_MODULES)
337 .if ${MACHINE_ARCH} == "i386"
338 # XXX some of these can move to the general case when de-i386'ed
339 # XXX some of these can move now, but are untested on other architectures.
341 _3dfx_linux= 3dfx_linux
358 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
363 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
382 _linprocfs= linprocfs
386 .if ${MK_NCP} != "no"
392 .if ${MK_NCP} != "no"
395 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
396 _opensolaris= opensolaris
416 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
419 .if ${MACHINE} == "i386"
458 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
459 .if exists(${.CURDIR}/../crypto/via)
466 .elif ${MACHINE} == "pc98"
474 .if ${MACHINE_ARCH} == "amd64"
490 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
494 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
522 _linprocfs= linprocfs
531 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
532 _opensolaris= opensolaris
534 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
535 .if exists(${.CURDIR}/../crypto/via)
552 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
557 .if ${MACHINE_ARCH} == "ia64"
558 # Modules not enabled on ia64 (as compared to i386) include:
559 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
560 # nsp s3 sbni stg vesa
561 # acpi is not enabled because it is broken as a module on ia64
592 .if ${MACHINE_ARCH} == "powerpc"
596 _nvram= powermac_nvram
601 .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>