311 .if ${MACHINE_ARCH} != "powerpc"
316 .if defined(ALL_MODULES)
320 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
321 .if exists(${.CURDIR}/../opencrypto)
323 _cryptodev= cryptodev
325 .if exists(${.CURDIR}/../crypto)
330 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
334 .if ${MK_PF} != "no" || defined(ALL_MODULES)
339 .if ${MACHINE_ARCH} == "i386"
340 # XXX some of these can move to the general case when de-i386'ed
341 # XXX some of these can move now, but are untested on other architectures.
343 _3dfx_linux= 3dfx_linux
354 _ath_rate_sample=ath_rate_sample
379 _linprocfs= linprocfs
383 .if ${MK_NCP} != "no"
389 .if ${MK_NCP} != "no"
412 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
415 .if ${MACHINE} == "i386"
446 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
447 .if exists(${.CURDIR}/../crypto/via)
455 .elif ${MACHINE} == "pc98"
463 .if ${MACHINE_ARCH} == "amd64"
471 _ath_rate_sample=ath_rate_sample
495 _linprocfs= linprocfs
513 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
518 .if ${MACHINE_ARCH} == "ia64"
519 # Modules not enabled on ia64 (as compared to i386) include:
520 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
521 # nsp oltr pecoff s3 sbni stg vesa
522 # acpi is not enabled because it is broken as a module on ia64
524 #_ar= ar not 64-bit clean
548 #_sr= sr not 64bit clean
554 .if ${MACHINE_ARCH} == "powerpc"
558 _ath_rate_sample=ath_rate_sample
560 _powermac_nvram= powermac_nvram
564 .if ${MACHINE_ARCH} == "sparc64"
567 _ath_rate_sample=ath_rate_sample
575 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
576 SUBDIR=${MODULES_OVERRIDE}
579 .for reject in ${WITHOUT_MODULES}
580 SUBDIR:= ${SUBDIR:N${reject}}
583 # Calling kldxref(8) for each module is expensive.
584 .if !defined(NO_XREF)
585 .MAKEFLAGS+= -DNO_XREF
587 @if type kldxref >/dev/null 2>&1; then \
588 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
589 kldxref ${DESTDIR}${KMODDIR}; \
593 .include <bsd.subdir.mk>