]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC r316485
[FreeBSD/stable/10.git] / sys / modules / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 SUBDIR_PARALLEL=
6
7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
9
10 SUBDIR= \
11         ${_3dfx} \
12         ${_3dfx_linux} \
13         ${_aac} \
14         ${_aacraid} \
15         accf_data \
16         accf_dns \
17         accf_http \
18         acl_nfs4 \
19         acl_posix1e \
20         ${_acpi} \
21         ae \
22         ${_aesni} \
23         age \
24         ${_agp} \
25         aha \
26         ${_ahb} \
27         ahci \
28         ${_aic} \
29         aic7xxx \
30         aio \
31         alc \
32         ale \
33         alq \
34         ${_amdsbwd} \
35         ${_amdtemp} \
36         amr \
37         ${_an} \
38         ${_aout} \
39         ${_apm} \
40         ${_arcmsr} \
41         ${_arcnet} \
42         ${_asmc} \
43         ${_asr} \
44         ata \
45         ath \
46         ath_pci \
47         ${_autofs} \
48         ${_auxio} \
49         ${_bce} \
50         bfe \
51         bge \
52         ${_bxe} \
53         ${_bios} \
54         ${_bktr} \
55         ${_bm} \
56         bridgestp \
57         bwi \
58         bwn \
59         cam \
60         ${_canbepm} \
61         ${_canbus} \
62         ${_cardbus} \
63         ${_carp} \
64         cas \
65         ${_cbb} \
66         cc \
67         cd9660 \
68         cd9660_iconv \
69         ${_ce} \
70         ${_cfi} \
71         ${_ciss} \
72         ${_cm} \
73         ${_cmx} \
74         ${_coff} \
75         ${_coretemp} \
76         ${_cp} \
77         ${_cpsw} \
78         ${_cpuctl} \
79         ${_cpufreq} \
80         ${_crypto} \
81         ${_cryptodev} \
82         ${_cs} \
83         ${_ct} \
84         ${_ctau} \
85         ctl \
86         ${_cxgb} \
87         ${_cxgbe} \
88         dc \
89         dcons \
90         dcons_crom \
91         de \
92         ${_dpms} \
93         ${_dpt} \
94         ${_drm} \
95         ${_drm2} \
96         ${_dtrace} \
97         dummynet \
98         ${_ed} \
99         ${_elink} \
100         ${_em} \
101         en \
102         ${_ep} \
103         ${_epic} \
104         esp \
105         ${_et} \
106         ${_ex} \
107         ${_exca} \
108         ${_ext2fs} \
109         ${_fatm} \
110         fdc \
111         fdescfs \
112         ${_fe} \
113         filemon \
114         firewire \
115         firmware \
116         fuse \
117         ${_fxp} \
118         gem \
119         geom \
120         ${_glxiic} \
121         ${_glxsb} \
122         hatm \
123         hifn \
124         hme \
125         ${_hpt27xx} \
126         ${_hptiop} \
127         ${_hptmv} \
128         ${_hptnr} \
129         ${_hptrr} \
130         hwpmc \
131         ${_hyperv} \
132         ${_i2c} \
133         ${_ibcore} \
134         ${_ibcs2} \
135         ${_ichwd} \
136         ${_ida} \
137         ${_ie} \
138         if_bridge \
139         if_disc \
140         if_edsc \
141         if_ef \
142         if_epair \
143         if_faith \
144         ${_if_gif} \
145         ${_if_gre} \
146         ${_if_me} \
147         if_lagg \
148         ${_if_ndis} \
149         if_stf \
150         if_tap \
151         if_tun \
152         if_vlan \
153         if_vxlan \
154         ${_igb} \
155         ${_iir} \
156         ${_imgact_binmisc} \
157         ${_io} \
158         ${_ioat} \
159         ${_ipoib} \
160         ${_ipdivert} \
161         ${_ipfilter} \
162         ${_ipfw} \
163         ipfw_nat \
164         ${_ipmi} \
165         ip6_mroute_mod \
166         ip_mroute_mod \
167         ${_ips} \
168         ${_ipw} \
169         ${_ipwfw} \
170         ${_isci} \
171         isp \
172         ${_ispfw} \
173         ${_iwi} \
174         ${_iwifw} \
175         ${_iwn} \
176         ${_iwnfw} \
177         ${_ix} \
178         ${_ixv} \
179         ${_ixgb} \
180         ${_ixgbe} \
181         ${_ixl} \
182         ${_ixlv} \
183         jme \
184         joy \
185         kbdmux \
186         kgssapi \
187         kgssapi_krb5 \
188         khelp \
189         krpc \
190         ksyms \
191         le \
192         lge \
193         libalias \
194         libiconv \
195         libmbpool \
196         libmchain \
197         ${_lindev} \
198         ${_linprocfs} \
199         ${_linsysfs} \
200         ${_linux} \
201         ${_linux_common} \
202         ${_linux64} \
203         lmc \
204         lpt \
205         mac_biba \
206         mac_bsdextended \
207         mac_ifoff \
208         mac_lomac \
209         mac_mls \
210         mac_none \
211         mac_partition \
212         mac_portacl \
213         mac_seeotheruids \
214         mac_stub \
215         mac_test \
216         malo \
217         mcd \
218         md \
219         mem \
220         mfi \
221         mii \
222         mlx \
223         ${_mlx4} \
224         ${_mlx4ib} \
225         ${_mlxen} \
226         ${_mlx5} \
227         ${_mlx5en} \
228         ${_mly} \
229         mmc \
230         mmcsd \
231         mpr \
232         mps \
233         mpt \
234         mqueue \
235         mrsas \
236         msdosfs \
237         msdosfs_iconv \
238         ${_mse} \
239         msk \
240         ${_mthca} \
241         mvs \
242         mwl \
243         ${_mwlfw} \
244         mxge \
245         my \
246         ${_nandfs} \
247         ${_nandsim} \
248         ${_ncp} \
249         ${_ncv} \
250         ${_ndis} \
251         netfpga10g \
252         ${_netgraph} \
253         ${_nfe} \
254         nfs_common \
255         nfscl \
256         nfsclient \
257         nfscommon \
258         nfsd \
259         nfslock \
260         nfslockd \
261         nfsserver \
262         nfssvc \
263         nge \
264         nmdm \
265         ${_nsp} \
266         nullfs \
267         ${_ntb} \
268         ${_nvd} \
269         ${_nve} \
270         ${_nvme} \
271         ${_nvram} \
272         ${_nxge} \
273         ${_opensolaris} \
274         oce \
275         ${_padlock} \
276         patm \
277         ${_pccard} \
278         ${_pcfclock} \
279         pcn \
280         ${_pf} \
281         ${_pflog} \
282         ${_pfsync} \
283         plip \
284         ${_pmc} \
285         ${_pms} \
286         ppbus \
287         ppc \
288         ppi \
289         pps \
290         procfs \
291         pseudofs \
292         ${_pst} \
293         pty  \
294         puc \
295         ${_qlxge} \
296         ${_qlxgb} \
297         ${_qlxgbe} \
298         ${_qlnx} \
299         ral \
300         ${_ralfw} \
301         ${_random} \
302         rc4 \
303         ${_rdma} \
304         re \
305         reiserfs \
306         rl \
307         ${_s3} \
308         ${_safe} \
309         ${_sbni} \
310         scc \
311         scd \
312         ${_scsi_low} \
313         sdhci \
314         sdhci_pci \
315         sem \
316         send \
317         ${_sf} \
318         ${_sfxge} \
319         sge \
320         siba_bwn \
321         siftr \
322         siis \
323         sis \
324         sk \
325         ${_smbfs} \
326         ${_sn} \
327         ${_snc} \
328         snp \
329         ${_sound} \
330         ${_speaker} \
331         ${_splash} \
332         ${_sppp} \
333         ste \
334         ${_stg} \
335         stge \
336         ${_streams} \
337         ${_svr4} \
338         ${_sym} \
339         ${_syscons} \
340         sysvipc \
341         ${_ti} \
342         tl \
343         tmpfs \
344         ${_toecore} \
345         ${_tpm} \
346         trm \
347         ${_twa} \
348         twe \
349         tws \
350         tx \
351         ${_txp} \
352         uart \
353         ubsec \
354         udf \
355         udf_iconv \
356         ufs \
357         unionfs \
358         usb \
359         utopia \
360         ${_vesa} \
361         ${_virtio} \
362         vge \
363         ${_viawd} \
364         vkbd \
365         ${_vmm} \
366         ${_vmware} \
367         ${_vpo} \
368         vr \
369         vte \
370         vx \
371         ${_vxge} \
372         wb \
373         ${_wbwd} \
374         ${_wi} \
375         wlan \
376         wlan_acl \
377         wlan_amrr \
378         wlan_ccmp \
379         wlan_rssadapt \
380         wlan_tkip \
381         wlan_wep \
382         wlan_xauth \
383         ${_wpi} \
384         ${_wpifw} \
385         ${_x86bios} \
386         ${_xe} \
387         xl \
388         ${_zfs} \
389         zlib \
390
391 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
392 _imgact_binmisc=        imgact_binmisc
393 _vmware=        vmware
394 .endif
395
396 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
397         ${MACHINE_CPUARCH} != "mips"
398 _syscons=       syscons
399 _vpo=           vpo
400 .endif
401
402 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
403 # no BUS_SPACE_UNSPECIFIED
404 # No barrier instruction support (specific to this driver)
405 _sym=           sym
406 # intr_disable() is a macro, causes problems
407 .if ${MK_SOURCELESS_UCODE} != "no"
408 _cxgb=          cxgb
409 .endif
410 .endif
411
412 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
413         ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
414         ${MACHINE_ARCH} != "powerpc"
415 _cxgbe=         cxgbe
416 .endif
417
418 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
419 _autofs=        autofs
420 .endif
421
422 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
423 .if exists(${.CURDIR}/../opencrypto)
424 _crypto=        crypto
425 _cryptodev=     cryptodev
426 .endif
427 .if exists(${.CURDIR}/../crypto)
428 _random=        random
429 .endif
430 .endif
431
432 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
433         defined(ALL_MODULES)
434 _carp=  carp
435 _toecore=       toecore
436 _if_gif=        if_gif
437 _if_gre=        if_gre
438 .endif
439
440 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
441 _if_me=         if_me
442 .endif
443
444 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
445 _ipfilter=      ipfilter
446 .endif
447
448 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
449 _ipdivert=      ipdivert
450 _ipfw=          ipfw
451 .endif
452
453 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
454 SUBDIR+=        iscsi
455 SUBDIR+=        iscsi_initiator
456 .endif
457
458 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
459 _nandfs=        nandfs
460 _nandsim=       nandsim
461 .endif
462
463 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
464 _netgraph=      netgraph
465 .endif
466
467 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
468         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
469 _pf=            pf
470 _pflog=         pflog
471 .if ${MK_INET_SUPPORT} != "no"
472 _pfsync=        pfsync
473 .endif
474 .endif
475
476 .if ${MK_SOURCELESS_UCODE} != "no"
477 _bce=           bce
478 _fatm=          fatm
479 _fxp=           fxp
480 _ispfw=         ispfw
481 _mwlfw=         mwlfw
482 _ralfw=         ralfw
483 _sf=            sf
484 _sn=            sn
485 _ti=            ti
486 _txp=           txp
487 .endif
488
489 .if ${MACHINE_CPUARCH} == "i386"
490 # XXX some of these can move to the general case when de-i386'ed
491 # XXX some of these can move now, but are untested on other architectures.
492 _3dfx=          3dfx
493 _3dfx_linux=    3dfx_linux
494 _agp=           agp
495 _aic=           aic
496 _an=            an
497 _aout=          aout
498 _apm=           apm
499 _arcnet=        arcnet
500 _bktr=          bktr
501 _bxe=           bxe
502 _cardbus=       cardbus
503 _cbb=           cbb
504 .if ${MK_SOURCELESS_UCODE} != "no"
505 _ce=            ce
506 .endif
507 _coff=          coff
508 .if ${MK_SOURCELESS_UCODE} != "no"
509 _cp=            cp
510 .endif
511 _cpuctl=        cpuctl
512 _cpufreq=       cpufreq
513 _cs=            cs
514 _dpms=          dpms
515 _drm=           drm
516 _drm2=          drm2
517 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
518 _dtrace=        dtrace
519 .endif
520 _ed=            ed
521 _elink=         elink
522 _em=            em
523 _ep=            ep
524 _et=            et
525 _exca=          exca
526 _ext2fs=        ext2fs
527 _fe=            fe
528 _glxiic=        glxiic
529 _glxsb=         glxsb
530 _i2c=           i2c
531 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
532 _ibcore=        ibcore
533 .endif
534 _ibcs2=         ibcs2
535 _ie=            ie
536 _if_ndis=       if_ndis
537 _igb=           igb
538 _io=            io
539 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
540 _ipoib=         ipoib
541 .endif
542 _lindev=        lindev
543 _linprocfs=     linprocfs
544 _linsysfs=      linsysfs
545 _linux=         linux
546 _mse=           mse
547 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
548 _mlx4=          mlx4
549 _mlx4ib=        mlx4ib
550 _mlxen=         mlxen
551 _mthca=         mthca
552 .endif
553 _mlx5=          mlx5
554 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
555         defined(ALL_MODULES)
556 _mlx5en=        mlx5en
557 .endif
558 _ncv=           ncv
559 _ndis=          ndis
560 _nsp=           nsp
561 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
562 _opensolaris=   opensolaris
563 .endif
564 _pccard=        pccard
565 _pcfclock=      pcfclock
566 _pst=           pst
567 _rdma=          rdma
568 _safe=          safe
569 _sbni=          sbni
570 _scsi_low=      scsi_low
571 _smbfs=         smbfs
572 _sound=         sound
573 _speaker=       speaker
574 _splash=        splash
575 _sppp=          sppp
576 _stg=           stg
577 _streams=       streams
578 _svr4=          svr4
579 _vxge=          vxge
580 _wbwd=          wbwd
581 _wi=            wi
582 _xe=            xe
583 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
584 _zfs=           zfs
585 .endif
586 .if ${MACHINE} == "i386"
587 _aac=           aac
588 _aacraid=       aacraid
589 _acpi=          acpi
590 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
591 _aesni=         aesni
592 .endif
593 _ahb=           ahb
594 _amdsbwd=       amdsbwd
595 _amdtemp=       amdtemp
596 _arcmsr=        arcmsr
597 _asmc=          asmc
598 _asr=           asr
599 _bios=          bios
600 _ciss=          ciss
601 _cm=            cm
602 _cmx=           cmx
603 _coretemp=      coretemp
604 .if ${MK_SOURCELESS_UCODE} != "no"
605 _ctau=          ctau
606 .endif
607 _dpt=           dpt
608 _ex=            ex
609 .if ${MK_SOURCELESS_HOST} != "no"
610 _hpt27xx=       hpt27xx
611 .endif
612 _hptiop=        hptiop
613 .if ${MK_SOURCELESS_HOST} != "no"
614 _hptmv=         hptmv
615 _hptnr=         hptnr
616 _hptrr=         hptrr
617 .endif
618 _hyperv=        hyperv
619 _ichwd=         ichwd
620 _ida=           ida
621 _iir=           iir
622 _ipmi=          ipmi
623 _ips=           ips
624 _ipw=           ipw
625 .if ${MK_SOURCELESS_UCODE} != "no"
626 _ipwfw=         ipwfw
627 .endif
628 _isci=          isci
629 _iwi=           iwi
630 .if ${MK_SOURCELESS_UCODE} != "no"
631 _iwifw=         iwifw
632 .endif
633 _iwn=           iwn
634 .if ${MK_SOURCELESS_UCODE} != "no"
635 _iwnfw=         iwnfw
636 .endif
637 _ix=            ix
638 _ixv=           ixv
639 _ixgb=          ixgb
640 _ixgbe=         ixgbe
641 _mly=           mly
642 _nfe=           nfe
643 _nvd=           nvd
644 .if ${MK_SOURCELESS_HOST} != "no"
645 _nve=           nve
646 .endif
647 _nvme=          nvme
648 _nvram=         nvram
649 _nxge=          nxge
650 _tpm=           tpm
651 _viawd=         viawd
652 _wpi=           wpi
653 .if ${MK_SOURCELESS_UCODE} != "no"
654 _wpifw=         wpifw
655 .endif
656 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
657 _padlock=       padlock
658 .endif
659 _s3=            s3
660 _twa=           twa
661 _vesa=          vesa
662 _virtio=        virtio
663 _x86bios=       x86bios
664 .elif ${MACHINE} == "pc98"
665 _canbepm=       canbepm
666 _canbus=        canbus
667 _ct=            ct
668 _pmc=           pmc
669 _snc=           snc
670 .endif
671 .endif
672
673 .if ${MACHINE_CPUARCH} == "amd64"
674 _aac=           aac
675 _aacraid=       aacraid
676 _aout=          aout
677 _acpi=          acpi
678 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
679 _aesni=         aesni
680 .endif
681 _agp=           agp
682 _an=            an
683 _amdsbwd=       amdsbwd
684 _amdtemp=       amdtemp
685 _arcmsr=        arcmsr
686 _asmc=          asmc
687 _bios=          bios
688 _bktr=          bktr
689 _bxe=           bxe
690 _cardbus=       cardbus
691 _cbb=           cbb
692 _cmx=           cmx
693 _ciss=          ciss
694 _coretemp=      coretemp
695 _cpuctl=        cpuctl
696 _cpufreq=       cpufreq
697 _dpms=          dpms
698 _drm=           drm
699 _drm2=          drm2
700 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
701 _dtrace=        dtrace
702 .endif
703 _ed=            ed
704 _et=            et
705 _em=            em
706 _exca=          exca
707 _ext2fs=        ext2fs
708 .if ${MK_SOURCELESS_HOST} != "no"
709 _hpt27xx=       hpt27xx
710 .endif
711 _hptiop=        hptiop
712 .if ${MK_SOURCELESS_HOST} != "no"
713 _hptmv=         hptmv
714 _hptnr=         hptnr
715 _hptrr=         hptrr
716 .endif
717 _hyperv=        hyperv
718 _i2c=           i2c
719 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
720 _ibcore=        ibcore
721 .endif
722 _ichwd=         ichwd
723 _ida=           ida
724 _if_ndis=       if_ndis
725 _igb=           igb
726 _iir=           iir
727 _io=            io
728 _ioat=          ioat
729 _ipmi=          ipmi
730 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
731 _ipoib=         ipoib
732 .endif
733 _ips=           ips
734 _ipw=           ipw
735 .if ${MK_SOURCELESS_UCODE} != "no"
736 _ipwfw=         ipwfw
737 .endif
738 _isci=          isci
739 _iwi=           iwi
740 .if ${MK_SOURCELESS_UCODE} != "no"
741 _iwifw=         iwifw
742 .endif
743 _iwn=           iwn
744 .if ${MK_SOURCELESS_UCODE} != "no"
745 _iwnfw=         iwnfw
746 .endif
747 _ix=            ix
748 _ixv=           ixv
749 _ixgb=          ixgb
750 _ixgbe=         ixgbe
751 _ixl=           ixl
752 _ixlv=          ixlv
753 _lindev=        lindev
754 _linprocfs=     linprocfs
755 _linsysfs=      linsysfs
756 _linux=         linux
757 _linux64=       linux64
758 _linux_common=  linux_common
759 _mly=           mly
760 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
761 _mlx4=          mlx4
762 _mlx4ib=        mlx4ib
763 _mlxen=         mlxen
764 _mthca=         mthca
765 .endif
766 _mlx5=          mlx5
767 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
768         defined(ALL_MODULES)
769 _mlx5en=        mlx5en
770 .endif
771 _ndis=          ndis
772 _nfe=           nfe
773 _ntb=           ntb
774 _nvd=           nvd
775 .if ${MK_SOURCELESS_HOST} != "no"
776 _nve=           nve
777 .endif
778 _nvme=          nvme
779 _nvram=         nvram
780 _nxge=          nxge
781 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
782 _opensolaris=   opensolaris
783 .endif
784 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
785 _padlock=       padlock
786 .endif
787 _pccard=        pccard
788 _pms=           pms
789 _qlxge=         qlxge
790 _qlxgb=         qlxgb
791 _qlxgbe=        qlxgbe
792 _qlnx=          qlnx
793 _rdma=          rdma
794 _s3=            s3
795 _safe=          safe
796 _scsi_low=      scsi_low
797 _sfxge=         sfxge
798 _smbfs=         smbfs
799 _sound=         sound
800 _speaker=       speaker
801 _splash=        splash
802 _sppp=          sppp
803 _tpm=           tpm
804 _twa=           twa
805 _vesa=          vesa
806 _viawd=         viawd
807 _virtio=        virtio
808 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
809 _vmm=           vmm
810 .endif
811 _vxge=          vxge
812 _x86bios=       x86bios
813 _wbwd=          wbwd
814 _wi=            wi
815 _wpi=           wpi
816 .if ${MK_SOURCELESS_UCODE} != "no"
817 _wpifw=         wpifw
818 .endif
819 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
820 _zfs=           zfs
821 .endif
822 .endif
823
824 .if ${MACHINE_CPUARCH} == "arm"
825 _cfi=           cfi
826 _cpsw=          cpsw
827 .endif
828
829 .if ${MACHINE_CPUARCH} == "ia64"
830 _aac=           aac
831 _aacraid=       aacraid
832 _aic=           aic
833 _an=            an
834 _arcnet=        arcnet
835 _asr=           asr
836 _bktr=          bktr
837 _cardbus=       cardbus
838 _cbb=           cbb
839 _ciss=          ciss
840 _cm=            cm
841 _cmx=           cmx
842 _coff=          coff
843 _cpufreq=       cpufreq
844 _dpt=           dpt
845 _em=            em
846 _ep=            ep
847 _et=            et
848 _exca=          exca
849 _fe=            fe
850 _hptiop=        hptiop
851 _ida=           ida
852 _igb=           igb
853 _iir=           iir
854 _ips=           ips
855 _mly=           mly
856 _pccard=        pccard
857 _scsi_low=      scsi_low
858 _smbfs=         smbfs
859 _sound=         sound
860 _splash=        splash
861 _sppp=          sppp
862 _streams=       streams
863 _tpm=           tpm
864 _twa=           twa
865 _wi=            wi
866 _xe=            xe
867 .endif
868
869 .if ${MACHINE_CPUARCH} == "powerpc"
870 _agp=           agp
871 _an=            an
872 _bm=            bm
873 _cardbus=       cardbus
874 _cbb=           cbb
875 _cfi=           cfi
876 _cpufreq=       cpufreq
877 _drm=           drm
878 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
879 _dtrace=        dtrace
880 .endif
881 _exca=          exca
882 _nvram=         powermac_nvram
883 _pccard=        pccard
884 _smbfs=         smbfs
885 _sound=         sound
886 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
887 _opensolaris=   opensolaris
888 .endif
889 _wi=            wi
890 .endif
891
892 .if ${MACHINE_ARCH} == "powerpc64"
893 _drm2=          drm2
894 _i2c=           i2c
895 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
896 _zfs=           zfs
897 .endif
898 .endif
899
900 .if ${MACHINE_CPUARCH} == "sparc64"
901 _auxio=         auxio
902 _em=            em
903 _epic=          epic
904 _i2c=           i2c
905 _igb=           igb
906 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
907 _opensolaris=   opensolaris
908 .endif
909 _smbfs=         smbfs
910 _sound=         sound
911 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
912 _zfs=           zfs
913 .endif
914 .endif
915
916 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
917 SUBDIR=${MODULES_OVERRIDE}
918 .endif
919
920 SUBDIR+=${MODULES_EXTRA}
921
922 .for reject in ${WITHOUT_MODULES}
923 SUBDIR:= ${SUBDIR:N${reject}}
924 .endfor
925
926 # Calling kldxref(8) for each module is expensive.
927 .if !defined(NO_XREF)
928 .MAKEFLAGS+=    -DNO_XREF
929 afterinstall:
930         @if type kldxref >/dev/null 2>&1; then \
931                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
932                 kldxref ${DESTDIR}${KMODDIR}; \
933         fi
934 .endif
935
936 .include <bsd.subdir.mk>