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
344 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
345 .if exists(${.CURDIR}/../opencrypto)
347 _cryptodev= cryptodev
349 .if exists(${.CURDIR}/../crypto)
354 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
358 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
362 .if ${MK_PF} != "no" || defined(ALL_MODULES)
367 .if ${MACHINE_ARCH} == "i386"
368 # XXX some of these can move to the general case when de-i386'ed
369 # XXX some of these can move now, but are untested on other architectures.
371 _3dfx_linux= 3dfx_linux
388 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
393 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
412 _linprocfs= linprocfs
416 .if ${MK_NCP} != "no"
422 .if ${MK_NCP} != "no"
425 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
426 _opensolaris= opensolaris
446 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
449 .if ${MACHINE} == "i386"
452 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
493 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
500 .elif ${MACHINE} == "pc98"
508 .if ${MACHINE_ARCH} == "amd64"
511 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
527 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
532 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
561 _linprocfs= linprocfs
570 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
571 _opensolaris= opensolaris
573 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
594 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
599 .if ${MACHINE_ARCH} == "ia64"
638 .if ${MACHINE_ARCH} == "powerpc"
642 _nvram= powermac_nvram
647 .if ${MACHINE_ARCH} == "sparc64"
653 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
654 _opensolaris= opensolaris
657 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
662 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
663 SUBDIR=${MODULES_OVERRIDE}
666 .for reject in ${WITHOUT_MODULES}
667 SUBDIR:= ${SUBDIR:N${reject}}
670 # Calling kldxref(8) for each module is expensive.
671 .if !defined(NO_XREF)
672 .MAKEFLAGS+= -DNO_XREF
674 @if type kldxref >/dev/null 2>&1; then \
675 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
676 kldxref ${DESTDIR}${KMODDIR}; \
680 .include <bsd.subdir.mk>