343 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
344 ${MACHINE_CPUARCH} != "mips"
349 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
350 # no BUS_SPACE_UNSPECIFIED
351 # No barrier instruction support (specific to this driver)
353 # intr_disable() is a macro, causes problems
357 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
358 .if exists(${.CURDIR}/../opencrypto)
360 _cryptodev= cryptodev
362 .if exists(${.CURDIR}/../crypto)
367 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
371 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
376 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
380 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
384 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
388 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
389 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
392 .if ${MK_INET_SUPPORT} != "no"
397 .if ${MACHINE_CPUARCH} == "i386"
398 # XXX some of these can move to the general case when de-i386'ed
399 # XXX some of these can move now, but are untested on other architectures.
401 _3dfx_linux= 3dfx_linux
419 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
424 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
444 _linprocfs= linprocfs
448 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
454 .if ${MK_NCP} != "no"
460 .if ${MK_NCP} != "no"
463 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
464 _opensolaris= opensolaris
484 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
487 .if ${MACHINE} == "i386"
490 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
531 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
538 .elif ${MACHINE} == "pc98"
546 .if ${MACHINE_CPUARCH} == "amd64"
550 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
567 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
572 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
601 _linprocfs= linprocfs
605 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
616 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
617 _opensolaris= opensolaris
619 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
640 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
645 .if ${MACHINE_CPUARCH} == "ia64"
684 .if ${MACHINE_CPUARCH} == "powerpc"
689 _nvram= powermac_nvram
694 .if ${MACHINE_ARCH} == "powerpc64"
695 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
696 _opensolaris= opensolaris
698 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
703 .if ${MACHINE_CPUARCH} == "sparc64"
709 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
710 _opensolaris= opensolaris
714 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
719 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
720 SUBDIR=${MODULES_OVERRIDE}
723 .for reject in ${WITHOUT_MODULES}
724 SUBDIR:= ${SUBDIR:N${reject}}
727 # Calling kldxref(8) for each module is expensive.
728 .if !defined(NO_XREF)
729 .MAKEFLAGS+= -DNO_XREF
731 @if type kldxref >/dev/null 2>&1; then \
732 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
733 kldxref ${DESTDIR}${KMODDIR}; \
737 .include <bsd.subdir.mk>