322 .if ${MACHINE_ARCH} != "powerpc"
327 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
328 .if exists(${.CURDIR}/../opencrypto)
330 _cryptodev= cryptodev
332 .if exists(${.CURDIR}/../crypto)
337 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
341 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
345 .if ${MK_PF} != "no" || defined(ALL_MODULES)
350 .if ${MACHINE_ARCH} == "i386"
351 # XXX some of these can move to the general case when de-i386'ed
352 # XXX some of these can move now, but are untested on other architectures.
354 _3dfx_linux= 3dfx_linux
371 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
376 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
395 _linprocfs= linprocfs
399 .if ${MK_NCP} != "no"
405 .if ${MK_NCP} != "no"
408 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
409 _opensolaris= opensolaris
429 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
432 .if ${MACHINE} == "i386"
472 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
479 .elif ${MACHINE} == "pc98"
487 .if ${MACHINE_ARCH} == "amd64"
503 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
508 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
537 _linprocfs= linprocfs
546 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
547 _opensolaris= opensolaris
549 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
569 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
574 .if ${MACHINE_ARCH} == "ia64"
612 .if ${MACHINE_ARCH} == "powerpc"
616 _nvram= powermac_nvram
621 .if ${MACHINE_ARCH} == "sparc64"
627 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
628 _opensolaris= opensolaris
631 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
636 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
637 SUBDIR=${MODULES_OVERRIDE}
640 .for reject in ${WITHOUT_MODULES}
641 SUBDIR:= ${SUBDIR:N${reject}}
644 # Calling kldxref(8) for each module is expensive.
645 .if !defined(NO_XREF)
646 .MAKEFLAGS+= -DNO_XREF
648 @if type kldxref >/dev/null 2>&1; then \
649 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
650 kldxref ${DESTDIR}${KMODDIR}; \
654 .include <bsd.subdir.mk>