313 .if ${MACHINE_ARCH} != "powerpc"
318 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
319 .if exists(${.CURDIR}/../opencrypto)
321 _cryptodev= cryptodev
323 .if exists(${.CURDIR}/../crypto)
328 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
332 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
336 .if ${MK_PF} != "no" || defined(ALL_MODULES)
341 .if ${MACHINE_ARCH} == "i386"
342 # XXX some of these can move to the general case when de-i386'ed
343 # XXX some of these can move now, but are untested on other architectures.
345 _3dfx_linux= 3dfx_linux
362 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
367 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
386 _linprocfs= linprocfs
390 .if ${MK_NCP} != "no"
396 .if ${MK_NCP} != "no"
399 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
400 _opensolaris= opensolaris
420 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
423 .if ${MACHINE} == "i386"
462 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
463 .if exists(${.CURDIR}/../crypto/via)
471 .elif ${MACHINE} == "pc98"
479 .if ${MACHINE_ARCH} == "amd64"
495 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
500 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
528 _linprocfs= linprocfs
537 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
538 _opensolaris= opensolaris
540 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
541 .if exists(${.CURDIR}/../crypto/via)
562 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
567 .if ${MACHINE_ARCH} == "ia64"
605 .if ${MACHINE_ARCH} == "powerpc"
609 _nvram= powermac_nvram
614 .if ${MACHINE_ARCH} == "sparc64"
620 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
621 _opensolaris= opensolaris
624 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
629 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
630 SUBDIR=${MODULES_OVERRIDE}
633 .for reject in ${WITHOUT_MODULES}
634 SUBDIR:= ${SUBDIR:N${reject}}
637 # Calling kldxref(8) for each module is expensive.
638 .if !defined(NO_XREF)
639 .MAKEFLAGS+= -DNO_XREF
641 @if type kldxref >/dev/null 2>&1; then \
642 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
643 kldxref ${DESTDIR}${KMODDIR}; \
647 .include <bsd.subdir.mk>