324 .if ${MACHINE_ARCH} != "powerpc"
329 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
330 .if exists(${.CURDIR}/../opencrypto)
332 _cryptodev= cryptodev
334 .if exists(${.CURDIR}/../crypto)
339 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
343 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
347 .if ${MK_PF} != "no" || defined(ALL_MODULES)
352 .if ${MACHINE_ARCH} == "i386"
353 # XXX some of these can move to the general case when de-i386'ed
354 # XXX some of these can move now, but are untested on other architectures.
356 _3dfx_linux= 3dfx_linux
373 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
378 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
397 _linprocfs= linprocfs
401 .if ${MK_NCP} != "no"
407 .if ${MK_NCP} != "no"
410 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
411 _opensolaris= opensolaris
431 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
434 .if ${MACHINE} == "i386"
437 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
478 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
485 .elif ${MACHINE} == "pc98"
493 .if ${MACHINE_ARCH} == "amd64"
496 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
512 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
517 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
546 _linprocfs= linprocfs
555 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
556 _opensolaris= opensolaris
558 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
579 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
584 .if ${MACHINE_ARCH} == "ia64"
623 .if ${MACHINE_ARCH} == "powerpc"
627 _nvram= powermac_nvram
632 .if ${MACHINE_ARCH} == "sparc64"
638 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
639 _opensolaris= opensolaris
642 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
647 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
648 SUBDIR=${MODULES_OVERRIDE}
651 .for reject in ${WITHOUT_MODULES}
652 SUBDIR:= ${SUBDIR:N${reject}}
655 # Calling kldxref(8) for each module is expensive.
656 .if !defined(NO_XREF)
657 .MAKEFLAGS+= -DNO_XREF
659 @if type kldxref >/dev/null 2>&1; then \
660 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
661 kldxref ${DESTDIR}${KMODDIR}; \
665 .include <bsd.subdir.mk>