318 .if ${MACHINE_ARCH} != "powerpc"
323 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
324 .if exists(${.CURDIR}/../opencrypto)
326 _cryptodev= cryptodev
328 .if exists(${.CURDIR}/../crypto)
333 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
337 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
341 .if ${MK_PF} != "no" || defined(ALL_MODULES)
346 .if ${MACHINE_ARCH} == "i386"
347 # XXX some of these can move to the general case when de-i386'ed
348 # XXX some of these can move now, but are untested on other architectures.
350 _3dfx_linux= 3dfx_linux
367 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
372 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
391 _linprocfs= linprocfs
395 .if ${MK_NCP} != "no"
401 .if ${MK_NCP} != "no"
404 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
405 _opensolaris= opensolaris
425 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
428 .if ${MACHINE} == "i386"
467 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
474 .elif ${MACHINE} == "pc98"
482 .if ${MACHINE_ARCH} == "amd64"
498 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
503 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
531 _linprocfs= linprocfs
540 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
541 _opensolaris= opensolaris
543 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
563 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
568 .if ${MACHINE_ARCH} == "ia64"
606 .if ${MACHINE_ARCH} == "powerpc"
610 _nvram= powermac_nvram
615 .if ${MACHINE_ARCH} == "sparc64"
621 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
622 _opensolaris= opensolaris
625 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
630 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
631 SUBDIR=${MODULES_OVERRIDE}
634 .for reject in ${WITHOUT_MODULES}
635 SUBDIR:= ${SUBDIR:N${reject}}
638 # Calling kldxref(8) for each module is expensive.
639 .if !defined(NO_XREF)
640 .MAKEFLAGS+= -DNO_XREF
642 @if type kldxref >/dev/null 2>&1; then \
643 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
644 kldxref ${DESTDIR}${KMODDIR}; \
648 .include <bsd.subdir.mk>