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