311 .if ${MACHINE_ARCH} != "powerpc"
316 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
317 .if exists(${.CURDIR}/../opencrypto)
319 _cryptodev= cryptodev
321 .if exists(${.CURDIR}/../crypto)
326 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
330 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
334 .if ${MK_PF} != "no" || defined(ALL_MODULES)
339 .if ${MACHINE_ARCH} == "i386"
340 # XXX some of these can move to the general case when de-i386'ed
341 # XXX some of these can move now, but are untested on other architectures.
343 _3dfx_linux= 3dfx_linux
360 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
365 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
384 _linprocfs= linprocfs
388 .if ${MK_NCP} != "no"
394 .if ${MK_NCP} != "no"
397 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
398 _opensolaris= opensolaris
418 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
421 .if ${MACHINE} == "i386"
460 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
461 .if exists(${.CURDIR}/../crypto/via)
469 .elif ${MACHINE} == "pc98"
477 .if ${MACHINE_ARCH} == "amd64"
493 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
498 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
526 _linprocfs= linprocfs
535 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
536 _opensolaris= opensolaris
538 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
539 .if exists(${.CURDIR}/../crypto/via)
560 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
565 .if ${MACHINE_ARCH} == "ia64"
603 .if ${MACHINE_ARCH} == "powerpc"
607 _nvram= powermac_nvram
612 .if ${MACHINE_ARCH} == "sparc64"
618 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
619 _opensolaris= opensolaris
622 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
627 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
628 SUBDIR=${MODULES_OVERRIDE}
631 .for reject in ${WITHOUT_MODULES}
632 SUBDIR:= ${SUBDIR:N${reject}}
635 # Calling kldxref(8) for each module is expensive.
636 .if !defined(NO_XREF)
637 .MAKEFLAGS+= -DNO_XREF
639 @if type kldxref >/dev/null 2>&1; then \
640 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
641 kldxref ${DESTDIR}${KMODDIR}; \
645 .include <bsd.subdir.mk>