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