323 .if ${MACHINE_ARCH} != "powerpc"
328 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
329 .if exists(${.CURDIR}/../opencrypto)
331 _cryptodev= cryptodev
333 .if exists(${.CURDIR}/../crypto)
338 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
342 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
346 .if ${MK_PF} != "no" || defined(ALL_MODULES)
351 .if ${MACHINE_ARCH} == "i386"
352 # XXX some of these can move to the general case when de-i386'ed
353 # XXX some of these can move now, but are untested on other architectures.
355 _3dfx_linux= 3dfx_linux
372 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
377 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
396 _linprocfs= linprocfs
400 .if ${MK_NCP} != "no"
406 .if ${MK_NCP} != "no"
409 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
410 _opensolaris= opensolaris
430 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
433 .if ${MACHINE} == "i386"
474 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
481 .elif ${MACHINE} == "pc98"
489 .if ${MACHINE_ARCH} == "amd64"
505 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
510 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
539 _linprocfs= linprocfs
548 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
549 _opensolaris= opensolaris
551 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
572 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
577 .if ${MACHINE_ARCH} == "ia64"
616 .if ${MACHINE_ARCH} == "powerpc"
620 _nvram= powermac_nvram
625 .if ${MACHINE_ARCH} == "sparc64"
631 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
632 _opensolaris= opensolaris
635 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
640 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
641 SUBDIR=${MODULES_OVERRIDE}
644 .for reject in ${WITHOUT_MODULES}
645 SUBDIR:= ${SUBDIR:N${reject}}
648 # Calling kldxref(8) for each module is expensive.
649 .if !defined(NO_XREF)
650 .MAKEFLAGS+= -DNO_XREF
652 @if type kldxref >/dev/null 2>&1; then \
653 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
654 kldxref ${DESTDIR}${KMODDIR}; \
658 .include <bsd.subdir.mk>