3 # oldcard -- specialized use for debugging only.
4 # owi -- totally unsupported for debugging only.
281 .if ${MACHINE_ARCH} != "powerpc"
287 .if defined(ALL_MODULES)
291 .if !defined(NO_CRYPT) || defined(ALL_MODULES)
292 .if exists(${.CURDIR}/../opencrypto)
294 _cryptodev= cryptodev
296 .if exists(${.CURDIR}/../crypto)
301 .if !defined(NO_IPFILTER) || defined(ALL_MODULES)
305 .if !defined(NO_PF) || defined(ALL_MODULES)
309 .if ${MACHINE_ARCH} == "i386"
310 # XXX some of these can move to the general case when de-i386'ed
311 # XXX some of these can move now, but are untested on other architectures.
340 _linprocfs= linprocfs
370 .if ${MACHINE} == "i386"
396 .if !defined(NO_CRYPT) || defined(ALL_MODULES)
397 .if exists(${.CURDIR}/../crypto/via)
404 .elif ${MACHINE} == "pc98"
412 .if ${MACHINE_ARCH} == "alpha"
416 _linprocfs= linprocfs
423 .if ${MACHINE_ARCH} == "amd64"
425 #_acpi= acpi # doesn't work on amd64 yet
454 .if ${MACHINE_ARCH} == "ia64"
455 # Modules not enabled on ia64 (as compared to i386) include:
456 # aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
457 # nsp oltr pecoff s3 sbni stg vesa
458 # acpi is not enabled because it is broken as a module on ia64
460 #_ar= ar not 64-bit clean
483 #_sr= sr not 64bit clean
489 .if ${MACHINE_ARCH} == "powerpc"
493 .if ${MACHINE_ARCH} == "sparc64"
499 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
500 SUBDIR=${MODULES_OVERRIDE}
503 .for reject in ${WITHOUT_MODULES}
504 SUBDIR:= ${SUBDIR:N${reject}}
507 # Calling kldxref(8) for each module is expensive.
508 .if !defined(NO_XREF)
509 .MAKEFLAGS+= -DNO_XREF
511 @if type kldxref >/dev/null 2>&1; then \
512 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
513 kldxref ${DESTDIR}${KMODDIR}; \
517 .include <bsd.subdir.mk>