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"
473 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
480 .elif ${MACHINE} == "pc98"
488 .if ${MACHINE_ARCH} == "amd64"
504 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
509 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
538 _linprocfs= linprocfs
547 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
548 _opensolaris= opensolaris
550 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
570 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
575 .if ${MACHINE_ARCH} == "ia64"
613 .if ${MACHINE_ARCH} == "powerpc"
617 _nvram= powermac_nvram
622 .if ${MACHINE_ARCH} == "sparc64"
628 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
629 _opensolaris= opensolaris
632 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
637 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
638 SUBDIR=${MODULES_OVERRIDE}
641 .for reject in ${WITHOUT_MODULES}
642 SUBDIR:= ${SUBDIR:N${reject}}
645 # Calling kldxref(8) for each module is expensive.
646 .if !defined(NO_XREF)
647 .MAKEFLAGS+= -DNO_XREF
649 @if type kldxref >/dev/null 2>&1; then \
650 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
651 kldxref ${DESTDIR}${KMODDIR}; \
655 .include <bsd.subdir.mk>