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