333 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
334 ${MACHINE_ARCH} != "mips"
339 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
340 # no BUS_SPACE_UNSPECIFIED
347 # No barrier instruction support (specific to this driver)
349 # no uart_cpu_$MACHINE_ARCH
351 # disable_intr() interferes
355 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
356 .if exists(${.CURDIR}/../opencrypto)
358 _cryptodev= cryptodev
360 .if exists(${.CURDIR}/../crypto)
365 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
369 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
373 .if ${MK_PF} != "no" || defined(ALL_MODULES)
378 .if ${MACHINE_ARCH} == "i386"
379 # XXX some of these can move to the general case when de-i386'ed
380 # XXX some of these can move now, but are untested on other architectures.
382 _3dfx_linux= 3dfx_linux
399 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
404 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
423 _linprocfs= linprocfs
427 .if ${MK_NCP} != "no"
433 .if ${MK_NCP} != "no"
436 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
437 _opensolaris= opensolaris
457 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
460 .if ${MACHINE} == "i386"
463 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
504 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
511 .elif ${MACHINE} == "pc98"
519 .if ${MACHINE_ARCH} == "amd64"
522 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
538 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
543 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
572 _linprocfs= linprocfs
581 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
582 _opensolaris= opensolaris
584 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
605 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
610 .if ${MACHINE_ARCH} == "ia64"
649 .if ${MACHINE_ARCH} == "powerpc"
653 _nvram= powermac_nvram
658 .if ${MACHINE_ARCH} == "sparc64"
664 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
665 _opensolaris= opensolaris
668 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
673 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
674 SUBDIR=${MODULES_OVERRIDE}
677 .for reject in ${WITHOUT_MODULES}
678 SUBDIR:= ${SUBDIR:N${reject}}
681 # Calling kldxref(8) for each module is expensive.
682 .if !defined(NO_XREF)
683 .MAKEFLAGS+= -DNO_XREF
685 @if type kldxref >/dev/null 2>&1; then \
686 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
687 kldxref ${DESTDIR}${KMODDIR}; \
691 .include <bsd.subdir.mk>