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