332 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
333 ${MACHINE_ARCH} != "mips"
338 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
339 # no BUS_SPACE_UNSPECIFIED
346 # No barrier instruction support (specific to this driver)
348 # no uart_cpu_$MACHINE_ARCH
350 # disable_intr() interferes
354 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
355 .if exists(${.CURDIR}/../opencrypto)
357 _cryptodev= cryptodev
359 .if exists(${.CURDIR}/../crypto)
364 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
368 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
372 .if ${MK_PF} != "no" || defined(ALL_MODULES)
377 .if ${MACHINE_ARCH} == "i386"
378 # XXX some of these can move to the general case when de-i386'ed
379 # XXX some of these can move now, but are untested on other architectures.
381 _3dfx_linux= 3dfx_linux
398 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
403 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
422 _linprocfs= linprocfs
426 .if ${MK_NCP} != "no"
432 .if ${MK_NCP} != "no"
435 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
436 _opensolaris= opensolaris
456 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
459 .if ${MACHINE} == "i386"
462 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
503 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
510 .elif ${MACHINE} == "pc98"
518 .if ${MACHINE_ARCH} == "amd64"
521 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
537 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
542 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
571 _linprocfs= linprocfs
580 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
581 _opensolaris= opensolaris
583 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
604 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
609 .if ${MACHINE_ARCH} == "ia64"
648 .if ${MACHINE_ARCH} == "powerpc"
652 _nvram= powermac_nvram
657 .if ${MACHINE_ARCH} == "sparc64"
663 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
664 _opensolaris= opensolaris
667 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
672 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
673 SUBDIR=${MODULES_OVERRIDE}
676 .for reject in ${WITHOUT_MODULES}
677 SUBDIR:= ${SUBDIR:N${reject}}
680 # Calling kldxref(8) for each module is expensive.
681 .if !defined(NO_XREF)
682 .MAKEFLAGS+= -DNO_XREF
684 @if type kldxref >/dev/null 2>&1; then \
685 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
686 kldxref ${DESTDIR}${KMODDIR}; \
690 .include <bsd.subdir.mk>