335 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
336 ${MACHINE_ARCH} != "mips"
341 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
342 # no BUS_SPACE_UNSPECIFIED
349 # No barrier instruction support (specific to this driver)
351 # no uart_cpu_$MACHINE_ARCH
353 # disable_intr() interferes
357 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
358 .if exists(${.CURDIR}/../opencrypto)
360 _cryptodev= cryptodev
362 .if exists(${.CURDIR}/../crypto)
367 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
371 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
375 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
379 .if ${MK_PF} != "no" || defined(ALL_MODULES)
384 .if ${MACHINE_ARCH} == "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
405 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
410 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
429 _linprocfs= linprocfs
433 .if ${MK_NCP} != "no"
439 .if ${MK_NCP} != "no"
442 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
443 _opensolaris= opensolaris
463 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
466 .if ${MACHINE} == "i386"
469 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
512 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
519 .elif ${MACHINE} == "pc98"
527 .if ${MACHINE_ARCH} == "amd64"
530 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
546 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
551 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
581 _linprocfs= linprocfs
590 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
591 _opensolaris= opensolaris
593 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
615 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
620 .if ${MACHINE_ARCH} == "ia64"
659 .if ${MACHINE_ARCH} == "powerpc"
663 _nvram= powermac_nvram
668 .if ${MACHINE_ARCH} == "sparc64"
674 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
675 _opensolaris= opensolaris
678 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
683 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
684 SUBDIR=${MODULES_OVERRIDE}
687 .for reject in ${WITHOUT_MODULES}
688 SUBDIR:= ${SUBDIR:N${reject}}
691 # Calling kldxref(8) for each module is expensive.
692 .if !defined(NO_XREF)
693 .MAKEFLAGS+= -DNO_XREF
695 @if type kldxref >/dev/null 2>&1; then \
696 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
697 kldxref ${DESTDIR}${KMODDIR}; \
701 .include <bsd.subdir.mk>