310 .if ${MACHINE_ARCH} != "powerpc"
315 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
316 .if exists(${.CURDIR}/../opencrypto)
318 _cryptodev= cryptodev
320 .if exists(${.CURDIR}/../crypto)
325 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
329 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
333 .if ${MK_PF} != "no" || defined(ALL_MODULES)
338 .if ${MACHINE_ARCH} == "i386"
339 # XXX some of these can move to the general case when de-i386'ed
340 # XXX some of these can move now, but are untested on other architectures.
342 _3dfx_linux= 3dfx_linux
359 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
364 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
383 _linprocfs= linprocfs
387 .if ${MK_NCP} != "no"
393 .if ${MK_NCP} != "no"
396 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
397 _opensolaris= opensolaris
417 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
420 .if ${MACHINE} == "i386"
459 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
460 .if exists(${.CURDIR}/../crypto/via)
468 .elif ${MACHINE} == "pc98"
476 .if ${MACHINE_ARCH} == "amd64"
492 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
497 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
525 _linprocfs= linprocfs
534 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
535 _opensolaris= opensolaris
537 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
538 .if exists(${.CURDIR}/../crypto/via)
559 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
564 .if ${MACHINE_ARCH} == "ia64"
602 .if ${MACHINE_ARCH} == "powerpc"
606 _nvram= powermac_nvram
611 .if ${MACHINE_ARCH} == "sparc64"
617 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
618 _opensolaris= opensolaris
621 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
626 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
627 SUBDIR=${MODULES_OVERRIDE}
630 .for reject in ${WITHOUT_MODULES}
631 SUBDIR:= ${SUBDIR:N${reject}}
634 # Calling kldxref(8) for each module is expensive.
635 .if !defined(NO_XREF)
636 .MAKEFLAGS+= -DNO_XREF
638 @if type kldxref >/dev/null 2>&1; then \
639 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
640 kldxref ${DESTDIR}${KMODDIR}; \
644 .include <bsd.subdir.mk>