343 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
347 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
348 ${MACHINE_ARCH} != "mips"
353 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
354 # no BUS_SPACE_UNSPECIFIED
361 # No barrier instruction support (specific to this driver)
363 # no uart_cpu_$MACHINE_ARCH
365 # disable_intr() interferes
369 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
370 .if exists(${.CURDIR}/../opencrypto)
372 _cryptodev= cryptodev
374 .if exists(${.CURDIR}/../crypto)
379 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
383 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
387 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
391 .if ${MK_PF} != "no" || defined(ALL_MODULES)
396 .if ${MACHINE_ARCH} == "i386"
397 # XXX some of these can move to the general case when de-i386'ed
398 # XXX some of these can move now, but are untested on other architectures.
400 _3dfx_linux= 3dfx_linux
417 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
422 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
441 _linprocfs= linprocfs
445 .if ${MK_NCP} != "no"
451 .if ${MK_NCP} != "no"
454 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
455 _opensolaris= opensolaris
476 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
479 .if ${MACHINE} == "i386"
483 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
527 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
535 .elif ${MACHINE} == "pc98"
543 .if ${MACHINE_ARCH} == "amd64"
547 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
563 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
568 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
599 _linprocfs= linprocfs
608 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
609 _opensolaris= opensolaris
611 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
635 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
640 .if ${MACHINE_ARCH} == "ia64"
680 .if ${MACHINE_ARCH} == "powerpc"
684 _nvram= powermac_nvram
689 .if ${MACHINE_ARCH} == "sparc64"
695 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
696 _opensolaris= opensolaris
699 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
704 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
705 SUBDIR=${MODULES_OVERRIDE}
708 .for reject in ${WITHOUT_MODULES}
709 SUBDIR:= ${SUBDIR:N${reject}}
712 # Calling kldxref(8) for each module is expensive.
713 .if !defined(NO_XREF)
714 .MAKEFLAGS+= -DNO_XREF
716 @if type kldxref >/dev/null 2>&1; then \
717 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
718 kldxref ${DESTDIR}${KMODDIR}; \
722 .include <bsd.subdir.mk>