326 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
327 ${MACHINE_ARCH} != "mips"
332 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
333 # no BUS_SPACE_UNSPECIFIED
340 # No barrier instruction support (specific to this driver)
342 # no uart_cpu_$MACHINE_ARCH
344 # disable_intr() interferes
348 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
349 .if exists(${.CURDIR}/../opencrypto)
351 _cryptodev= cryptodev
353 .if exists(${.CURDIR}/../crypto)
358 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
362 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
366 .if ${MK_PF} != "no" || defined(ALL_MODULES)
371 .if ${MACHINE_ARCH} == "i386"
372 # XXX some of these can move to the general case when de-i386'ed
373 # XXX some of these can move now, but are untested on other architectures.
375 _3dfx_linux= 3dfx_linux
392 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
397 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
416 _linprocfs= linprocfs
420 .if ${MK_NCP} != "no"
426 .if ${MK_NCP} != "no"
429 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
430 _opensolaris= opensolaris
450 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
453 .if ${MACHINE} == "i386"
456 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
497 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
504 .elif ${MACHINE} == "pc98"
512 .if ${MACHINE_ARCH} == "amd64"
515 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
531 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
536 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
565 _linprocfs= linprocfs
574 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
575 _opensolaris= opensolaris
577 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
598 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
603 .if ${MACHINE_ARCH} == "ia64"
642 .if ${MACHINE_ARCH} == "powerpc"
646 _nvram= powermac_nvram
651 .if ${MACHINE_ARCH} == "sparc64"
657 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
658 _opensolaris= opensolaris
661 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
666 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
667 SUBDIR=${MODULES_OVERRIDE}
670 .for reject in ${WITHOUT_MODULES}
671 SUBDIR:= ${SUBDIR:N${reject}}
674 # Calling kldxref(8) for each module is expensive.
675 .if !defined(NO_XREF)
676 .MAKEFLAGS+= -DNO_XREF
678 @if type kldxref >/dev/null 2>&1; then \
679 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
680 kldxref ${DESTDIR}${KMODDIR}; \
684 .include <bsd.subdir.mk>