316 .if ${MACHINE_ARCH} != "powerpc"
321 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
322 .if exists(${.CURDIR}/../opencrypto)
324 _cryptodev= cryptodev
326 .if exists(${.CURDIR}/../crypto)
331 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
335 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
339 .if ${MK_PF} != "no" || defined(ALL_MODULES)
344 .if ${MACHINE_ARCH} == "i386"
345 # XXX some of these can move to the general case when de-i386'ed
346 # XXX some of these can move now, but are untested on other architectures.
348 _3dfx_linux= 3dfx_linux
365 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
370 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
389 _linprocfs= linprocfs
393 .if ${MK_NCP} != "no"
399 .if ${MK_NCP} != "no"
402 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
403 _opensolaris= opensolaris
423 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
426 .if ${MACHINE} == "i386"
465 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
472 .elif ${MACHINE} == "pc98"
480 .if ${MACHINE_ARCH} == "amd64"
496 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
501 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
529 _linprocfs= linprocfs
538 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
539 _opensolaris= opensolaris
541 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
561 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
566 .if ${MACHINE_ARCH} == "ia64"
604 .if ${MACHINE_ARCH} == "powerpc"
608 _nvram= powermac_nvram
613 .if ${MACHINE_ARCH} == "sparc64"
619 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
620 _opensolaris= opensolaris
623 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
628 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
629 SUBDIR=${MODULES_OVERRIDE}
632 .for reject in ${WITHOUT_MODULES}
633 SUBDIR:= ${SUBDIR:N${reject}}
636 # Calling kldxref(8) for each module is expensive.
637 .if !defined(NO_XREF)
638 .MAKEFLAGS+= -DNO_XREF
640 @if type kldxref >/dev/null 2>&1; then \
641 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
642 kldxref ${DESTDIR}${KMODDIR}; \
646 .include <bsd.subdir.mk>