331 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
332 ${MACHINE_ARCH} != "mips"
337 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
338 # no BUS_SPACE_UNSPECIFIED
345 # No barrier instruction support (specific to this driver)
347 # no uart_cpu_$MACHINE_ARCH
349 # disable_intr() interferes
353 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
354 .if exists(${.CURDIR}/../opencrypto)
356 _cryptodev= cryptodev
358 .if exists(${.CURDIR}/../crypto)
363 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
367 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
371 .if ${MK_PF} != "no" || defined(ALL_MODULES)
376 .if ${MACHINE_ARCH} == "i386"
377 # XXX some of these can move to the general case when de-i386'ed
378 # XXX some of these can move now, but are untested on other architectures.
380 _3dfx_linux= 3dfx_linux
397 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
402 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
421 _linprocfs= linprocfs
425 .if ${MK_NCP} != "no"
431 .if ${MK_NCP} != "no"
434 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
435 _opensolaris= opensolaris
455 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
458 .if ${MACHINE} == "i386"
461 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
502 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
509 .elif ${MACHINE} == "pc98"
517 .if ${MACHINE_ARCH} == "amd64"
520 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
536 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
541 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
570 _linprocfs= linprocfs
579 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
580 _opensolaris= opensolaris
582 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
603 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
608 .if ${MACHINE_ARCH} == "ia64"
647 .if ${MACHINE_ARCH} == "powerpc"
651 _nvram= powermac_nvram
656 .if ${MACHINE_ARCH} == "sparc64"
662 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
663 _opensolaris= opensolaris
666 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
671 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
672 SUBDIR=${MODULES_OVERRIDE}
675 .for reject in ${WITHOUT_MODULES}
676 SUBDIR:= ${SUBDIR:N${reject}}
679 # Calling kldxref(8) for each module is expensive.
680 .if !defined(NO_XREF)
681 .MAKEFLAGS+= -DNO_XREF
683 @if type kldxref >/dev/null 2>&1; then \
684 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
685 kldxref ${DESTDIR}${KMODDIR}; \
689 .include <bsd.subdir.mk>