321 .if ${MACHINE_ARCH} != "powerpc"
326 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
327 .if exists(${.CURDIR}/../opencrypto)
329 _cryptodev= cryptodev
331 .if exists(${.CURDIR}/../crypto)
336 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
340 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
344 .if ${MK_PF} != "no" || defined(ALL_MODULES)
349 .if ${MACHINE_ARCH} == "i386"
350 # XXX some of these can move to the general case when de-i386'ed
351 # XXX some of these can move now, but are untested on other architectures.
353 _3dfx_linux= 3dfx_linux
370 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
375 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
394 _linprocfs= linprocfs
398 .if ${MK_NCP} != "no"
404 .if ${MK_NCP} != "no"
407 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
408 _opensolaris= opensolaris
428 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
431 .if ${MACHINE} == "i386"
471 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
478 .elif ${MACHINE} == "pc98"
486 .if ${MACHINE_ARCH} == "amd64"
502 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
507 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
536 _linprocfs= linprocfs
545 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
546 _opensolaris= opensolaris
548 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
568 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
573 .if ${MACHINE_ARCH} == "ia64"
611 .if ${MACHINE_ARCH} == "powerpc"
615 _nvram= powermac_nvram
620 .if ${MACHINE_ARCH} == "sparc64"
626 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
627 _opensolaris= opensolaris
630 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
635 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
636 SUBDIR=${MODULES_OVERRIDE}
639 .for reject in ${WITHOUT_MODULES}
640 SUBDIR:= ${SUBDIR:N${reject}}
643 # Calling kldxref(8) for each module is expensive.
644 .if !defined(NO_XREF)
645 .MAKEFLAGS+= -DNO_XREF
647 @if type kldxref >/dev/null 2>&1; then \
648 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
649 kldxref ${DESTDIR}${KMODDIR}; \
653 .include <bsd.subdir.mk>