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