315 .if ${MACHINE_ARCH} != "powerpc"
320 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
321 .if exists(${.CURDIR}/../opencrypto)
323 _cryptodev= cryptodev
325 .if exists(${.CURDIR}/../crypto)
330 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
334 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
338 .if ${MK_PF} != "no" || defined(ALL_MODULES)
343 .if ${MACHINE_ARCH} == "i386"
344 # XXX some of these can move to the general case when de-i386'ed
345 # XXX some of these can move now, but are untested on other architectures.
347 _3dfx_linux= 3dfx_linux
364 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
369 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
388 _linprocfs= linprocfs
392 .if ${MK_NCP} != "no"
398 .if ${MK_NCP} != "no"
401 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
402 _opensolaris= opensolaris
422 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
425 .if ${MACHINE} == "i386"
464 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
465 .if exists(${.CURDIR}/../crypto/via)
473 .elif ${MACHINE} == "pc98"
481 .if ${MACHINE_ARCH} == "amd64"
497 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
502 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
530 _linprocfs= linprocfs
539 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
540 _opensolaris= opensolaris
542 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
543 .if exists(${.CURDIR}/../crypto/via)
564 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
569 .if ${MACHINE_ARCH} == "ia64"
607 .if ${MACHINE_ARCH} == "powerpc"
611 _nvram= powermac_nvram
616 .if ${MACHINE_ARCH} == "sparc64"
622 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
623 _opensolaris= opensolaris
626 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
631 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
632 SUBDIR=${MODULES_OVERRIDE}
635 .for reject in ${WITHOUT_MODULES}
636 SUBDIR:= ${SUBDIR:N${reject}}
639 # Calling kldxref(8) for each module is expensive.
640 .if !defined(NO_XREF)
641 .MAKEFLAGS+= -DNO_XREF
643 @if type kldxref >/dev/null 2>&1; then \
644 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
645 kldxref ${DESTDIR}${KMODDIR}; \
649 .include <bsd.subdir.mk>