337 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
338 ${MACHINE_CPUARCH} != "mips"
343 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
344 # no BUS_SPACE_UNSPECIFIED
345 # No barrier instruction support (specific to this driver)
347 # intr_disable() is a macro, causes problems
351 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
352 .if exists(${.CURDIR}/../opencrypto)
354 _cryptodev= cryptodev
356 .if exists(${.CURDIR}/../crypto)
361 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
365 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
370 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
374 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
378 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
379 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
384 .if ${MACHINE_CPUARCH} == "i386"
385 # XXX some of these can move to the general case when de-i386'ed
386 # XXX some of these can move now, but are untested on other architectures.
388 _3dfx_linux= 3dfx_linux
406 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
411 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
430 _linprocfs= linprocfs
434 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
440 .if ${MK_NCP} != "no"
446 .if ${MK_NCP} != "no"
449 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
450 _opensolaris= opensolaris
469 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
472 .if ${MACHINE} == "i386"
475 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
516 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
523 .elif ${MACHINE} == "pc98"
531 .if ${MACHINE_CPUARCH} == "amd64"
535 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
552 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
557 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
586 _linprocfs= linprocfs
590 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
601 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
602 _opensolaris= opensolaris
604 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
624 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
629 .if ${MACHINE_CPUARCH} == "ia64"
668 .if ${MACHINE_CPUARCH} == "powerpc"
673 _nvram= powermac_nvram
678 .if ${MACHINE_ARCH} == "powerpc64"
679 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
680 _opensolaris= opensolaris
682 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
687 .if ${MACHINE_CPUARCH} == "sparc64"
693 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
694 _opensolaris= opensolaris
698 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
703 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
704 SUBDIR=${MODULES_OVERRIDE}
707 .for reject in ${WITHOUT_MODULES}
708 SUBDIR:= ${SUBDIR:N${reject}}
711 # Calling kldxref(8) for each module is expensive.
712 .if !defined(NO_XREF)
713 .MAKEFLAGS+= -DNO_XREF
715 @if type kldxref >/dev/null 2>&1; then \
716 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
717 kldxref ${DESTDIR}${KMODDIR}; \
721 .include <bsd.subdir.mk>