324 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
325 ${MACHINE_ARCH} != "mips"
330 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
331 # no BUS_SPACE_UNSPECIFIED
338 # No barrier instruction support (specific to this driver)
340 # no uart_cpu_$MACHINE_ARCH
342 # disable_intr() interferes
346 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
347 .if exists(${.CURDIR}/../opencrypto)
349 _cryptodev= cryptodev
351 .if exists(${.CURDIR}/../crypto)
356 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
360 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
364 .if ${MK_PF} != "no" || defined(ALL_MODULES)
369 .if ${MACHINE_ARCH} == "i386"
370 # XXX some of these can move to the general case when de-i386'ed
371 # XXX some of these can move now, but are untested on other architectures.
373 _3dfx_linux= 3dfx_linux
390 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
395 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
414 _linprocfs= linprocfs
418 .if ${MK_NCP} != "no"
424 .if ${MK_NCP} != "no"
427 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
428 _opensolaris= opensolaris
448 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
451 .if ${MACHINE} == "i386"
454 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
495 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
502 .elif ${MACHINE} == "pc98"
510 .if ${MACHINE_ARCH} == "amd64"
513 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
529 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
534 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
563 _linprocfs= linprocfs
572 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
573 _opensolaris= opensolaris
575 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
596 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
601 .if ${MACHINE_ARCH} == "ia64"
640 .if ${MACHINE_ARCH} == "powerpc"
644 _nvram= powermac_nvram
649 .if ${MACHINE_ARCH} == "sparc64"
655 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
656 _opensolaris= opensolaris
659 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
664 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
665 SUBDIR=${MODULES_OVERRIDE}
668 .for reject in ${WITHOUT_MODULES}
669 SUBDIR:= ${SUBDIR:N${reject}}
672 # Calling kldxref(8) for each module is expensive.
673 .if !defined(NO_XREF)
674 .MAKEFLAGS+= -DNO_XREF
676 @if type kldxref >/dev/null 2>&1; then \
677 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
678 kldxref ${DESTDIR}${KMODDIR}; \
682 .include <bsd.subdir.mk>