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