342 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
346 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
347 ${MACHINE_ARCH} != "mips"
352 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
353 # no BUS_SPACE_UNSPECIFIED
360 # No barrier instruction support (specific to this driver)
362 # no uart_cpu_$MACHINE_ARCH
364 # disable_intr() interferes
368 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
369 .if exists(${.CURDIR}/../opencrypto)
371 _cryptodev= cryptodev
373 .if exists(${.CURDIR}/../crypto)
378 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
382 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
386 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
390 .if ${MK_PF} != "no" || defined(ALL_MODULES)
395 .if ${MACHINE_ARCH} == "i386"
396 # XXX some of these can move to the general case when de-i386'ed
397 # XXX some of these can move now, but are untested on other architectures.
399 _3dfx_linux= 3dfx_linux
416 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
421 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
440 _linprocfs= linprocfs
444 .if ${MK_NCP} != "no"
450 .if ${MK_NCP} != "no"
453 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
454 _opensolaris= opensolaris
475 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
478 .if ${MACHINE} == "i386"
481 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
525 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
533 .elif ${MACHINE} == "pc98"
541 .if ${MACHINE_ARCH} == "amd64"
544 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
560 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
565 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
596 _linprocfs= linprocfs
605 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
606 _opensolaris= opensolaris
608 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
632 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
637 .if ${MACHINE_ARCH} == "ia64"
676 .if ${MACHINE_ARCH} == "powerpc"
680 _nvram= powermac_nvram
685 .if ${MACHINE_ARCH} == "sparc64"
691 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
692 _opensolaris= opensolaris
695 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
700 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
701 SUBDIR=${MODULES_OVERRIDE}
704 .for reject in ${WITHOUT_MODULES}
705 SUBDIR:= ${SUBDIR:N${reject}}
708 # Calling kldxref(8) for each module is expensive.
709 .if !defined(NO_XREF)
710 .MAKEFLAGS+= -DNO_XREF
712 @if type kldxref >/dev/null 2>&1; then \
713 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
714 kldxref ${DESTDIR}${KMODDIR}; \
718 .include <bsd.subdir.mk>