]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC ixgbe commits for 10.2:
[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_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         isp \
169         ${_ispfw} \
170         ${_iwi} \
171         ${_iwifw} \
172         ${_iwn} \
173         ${_iwnfw} \
174         ${_ixgb} \
175         ${_ix} \
176         ${_ixv} \
177         ${_ixl} \
178         ${_ixlv} \
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_AUTOFS} != "no" || defined(ALL_MODULES)
408 _autofs=        autofs
409 .endif
410
411 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
412 .if exists(${.CURDIR}/../opencrypto)
413 _crypto=        crypto
414 _cryptodev=     cryptodev
415 .endif
416 .if exists(${.CURDIR}/../crypto)
417 _random=        random
418 .endif
419 .endif
420
421 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
422         defined(ALL_MODULES)
423 _carp=  carp
424 _toecore=       toecore
425 .endif
426
427 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
428 _if_gre=        if_gre
429 .endif
430
431 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
432 _ipfilter=      ipfilter
433 .endif
434
435 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
436 _ipdivert=      ipdivert
437 _ipfw=          ipfw
438 .endif
439
440 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
441 SUBDIR+=        iscsi
442 SUBDIR+=        iscsi_initiator
443 .endif
444
445 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
446 _nandfs=        nandfs
447 _nandsim=       nandsim
448 .endif
449
450 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
451 _netgraph=      netgraph
452 .endif
453
454 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
455         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
456 _pf=            pf
457 _pflog=         pflog
458 .if ${MK_INET_SUPPORT} != "no"
459 _pfsync=        pfsync
460 .endif
461 .endif
462
463 .if ${MK_SOURCELESS_UCODE} != "no"
464 _bce=           bce
465 _fatm=          fatm
466 _fxp=           fxp
467 _ispfw=         ispfw
468 _mwlfw=         mwlfw
469 _ralfw=         ralfw
470 _sf=            sf
471 _sn=            sn
472 _ti=            ti
473 _txp=           txp
474 .endif
475
476 .if ${MACHINE_CPUARCH} == "i386"
477 # XXX some of these can move to the general case when de-i386'ed
478 # XXX some of these can move now, but are untested on other architectures.
479 _3dfx=          3dfx
480 _3dfx_linux=    3dfx_linux
481 _agp=           agp
482 _aic=           aic
483 _an=            an
484 _aout=          aout
485 _apm=           apm
486 _arcnet=        arcnet
487 _bktr=          bktr
488 _bxe=           bxe
489 _cardbus=       cardbus
490 _cbb=           cbb
491 .if ${MK_SOURCELESS_UCODE} != "no"
492 _ce=            ce
493 .endif
494 _coff=          coff
495 .if ${MK_SOURCELESS_UCODE} != "no"
496 _cp=            cp
497 .endif
498 _cpuctl=        cpuctl
499 _cpufreq=       cpufreq
500 _cs=            cs
501 _dpms=          dpms
502 _drm=           drm
503 _drm2=          drm2
504 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
505 _dtrace=        dtrace
506 .endif
507 _ed=            ed
508 _elink=         elink
509 _em=            em
510 _ep=            ep
511 _et=            et
512 _exca=          exca
513 _ext2fs=        ext2fs
514 _fe=            fe
515 _glxiic=        glxiic
516 _glxsb=         glxsb
517 _i2c=           i2c
518 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
519 _ibcore=        ibcore
520 .endif
521 _ibcs2=         ibcs2
522 _ie=            ie
523 _if_ndis=       if_ndis
524 _igb=           igb
525 _io=            io
526 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
527 _ipoib=         ipoib
528 .endif
529 _lindev=        lindev
530 _linprocfs=     linprocfs
531 _linsysfs=      linsysfs
532 _linux=         linux
533 _mse=           mse
534 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
535 _mlx4=          mlx4
536 _mlx4ib=        mlx4ib
537 _mlxen=         mlxen
538 _mthca=         mthca
539 .endif
540 _ncv=           ncv
541 _ndis=          ndis
542 _nsp=           nsp
543 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
544 _opensolaris=   opensolaris
545 .endif
546 _pccard=        pccard
547 _pcfclock=      pcfclock
548 _pst=           pst
549 _rdma=          rdma
550 _safe=          safe
551 _sbni=          sbni
552 _scsi_low=      scsi_low
553 _smbfs=         smbfs
554 _sound=         sound
555 _speaker=       speaker
556 _splash=        splash
557 _sppp=          sppp
558 _stg=           stg
559 _streams=       streams
560 _svr4=          svr4
561 _vxge=          vxge
562 _wbwd=          wbwd
563 _wi=            wi
564 _xe=            xe
565 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
566 _zfs=           zfs
567 .endif
568 .if ${MACHINE} == "i386"
569 _aac=           aac
570 _aacraid=       aacraid
571 _acpi=          acpi
572 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
573 _aesni=         aesni
574 .endif
575 _ahb=           ahb
576 _amdsbwd=       amdsbwd
577 _amdtemp=       amdtemp
578 _arcmsr=        arcmsr
579 _asmc=          asmc
580 _asr=           asr
581 _bios=          bios
582 _ciss=          ciss
583 _cm=            cm
584 _cmx=           cmx
585 _coretemp=      coretemp
586 .if ${MK_SOURCELESS_UCODE} != "no"
587 _ctau=          ctau
588 .endif
589 _dpt=           dpt
590 _ex=            ex
591 .if ${MK_SOURCELESS_HOST} != "no"
592 _hpt27xx=       hpt27xx
593 .endif
594 _hptiop=        hptiop
595 .if ${MK_SOURCELESS_HOST} != "no"
596 _hptmv=         hptmv
597 _hptnr=         hptnr
598 _hptrr=         hptrr
599 .endif
600 _hyperv=        hyperv
601 _ichwd=         ichwd
602 _ida=           ida
603 _iir=           iir
604 _ipmi=          ipmi
605 _ips=           ips
606 _ipw=           ipw
607 .if ${MK_SOURCELESS_UCODE} != "no"
608 _ipwfw=         ipwfw
609 .endif
610 _isci=          isci
611 _iwi=           iwi
612 .if ${MK_SOURCELESS_UCODE} != "no"
613 _iwifw=         iwifw
614 .endif
615 _iwn=           iwn
616 .if ${MK_SOURCELESS_UCODE} != "no"
617 _iwnfw=         iwnfw
618 .endif
619 _ixgb=          ixgb
620 _ixgbe=         ixgbe
621 _mly=           mly
622 _nfe=           nfe
623 _nvd=           nvd
624 .if ${MK_SOURCELESS_HOST} != "no"
625 _nve=           nve
626 .endif
627 _nvme=          nvme
628 _nvram=         nvram
629 _nxge=          nxge
630 _tpm=           tpm
631 _viawd=         viawd
632 _wpi=           wpi
633 .if ${MK_SOURCELESS_UCODE} != "no"
634 _wpifw=         wpifw
635 .endif
636 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
637 _padlock=       padlock
638 .endif
639 _s3=            s3
640 _twa=           twa
641 _vesa=          vesa
642 _virtio=        virtio
643 _x86bios=       x86bios
644 .elif ${MACHINE} == "pc98"
645 _canbepm=       canbepm
646 _canbus=        canbus
647 _ct=            ct
648 _pmc=           pmc
649 _snc=           snc
650 .endif
651 .endif
652
653 .if ${MACHINE_CPUARCH} == "amd64"
654 _aac=           aac
655 _aacraid=       aacraid
656 _aout=          aout
657 _acpi=          acpi
658 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
659 _aesni=         aesni
660 .endif
661 _agp=           agp
662 _an=            an
663 _amdsbwd=       amdsbwd
664 _amdtemp=       amdtemp
665 _arcmsr=        arcmsr
666 _asmc=          asmc
667 _bktr=          bktr
668 _bxe=           bxe
669 _cardbus=       cardbus
670 _cbb=           cbb
671 _cmx=           cmx
672 _ciss=          ciss
673 _coretemp=      coretemp
674 _cpuctl=        cpuctl
675 _cpufreq=       cpufreq
676 _dpms=          dpms
677 _drm=           drm
678 _drm2=          drm2
679 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
680 _dtrace=        dtrace
681 .endif
682 _ed=            ed
683 _et=            et
684 _em=            em
685 _exca=          exca
686 _ext2fs=        ext2fs
687 .if ${MK_SOURCELESS_HOST} != "no"
688 _hpt27xx=       hpt27xx
689 .endif
690 _hptiop=        hptiop
691 .if ${MK_SOURCELESS_HOST} != "no"
692 _hptmv=         hptmv
693 _hptnr=         hptnr
694 _hptrr=         hptrr
695 .endif
696 _hyperv=        hyperv
697 _i2c=           i2c
698 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
699 _ibcore=        ibcore
700 .endif
701 _ichwd=         ichwd
702 _ida=           ida
703 _if_ndis=       if_ndis
704 _igb=           igb
705 _iir=           iir
706 _io=            io
707 _ipmi=          ipmi
708 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
709 _ipoib=         ipoib
710 .endif
711 _ips=           ips
712 _ipw=           ipw
713 .if ${MK_SOURCELESS_UCODE} != "no"
714 _ipwfw=         ipwfw
715 .endif
716 _isci=          isci
717 _iwi=           iwi
718 .if ${MK_SOURCELESS_UCODE} != "no"
719 _iwifw=         iwifw
720 .endif
721 _iwn=           iwn
722 .if ${MK_SOURCELESS_UCODE} != "no"
723 _iwnfw=         iwnfw
724 .endif
725 _ixgb=          ixgb
726 _ixgbe=         ixgbe
727 _ixl=           ixl
728 _ixlv=          ixlv
729 _lindev=        lindev
730 _linprocfs=     linprocfs
731 _linsysfs=      linsysfs
732 _linux=         linux
733 _mly=           mly
734 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
735 _mlx4=          mlx4
736 _mlx4ib=        mlx4ib
737 _mlxen=         mlxen
738 _mthca=         mthca
739 .endif
740 _ndis=          ndis
741 _nfe=           nfe
742 _ntb=           ntb
743 _nvd=           nvd
744 .if ${MK_SOURCELESS_HOST} != "no"
745 _nve=           nve
746 .endif
747 _nvme=          nvme
748 _nvram=         nvram
749 _nxge=          nxge
750 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
751 _opensolaris=   opensolaris
752 .endif
753 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
754 _padlock=       padlock
755 .endif
756 _pccard=        pccard
757 _qlxge=         qlxge
758 _qlxgb=         qlxgb
759 _qlxgbe=        qlxgbe
760 _rdma=          rdma
761 _s3=            s3
762 _safe=          safe
763 _scsi_low=      scsi_low
764 _sfxge=         sfxge
765 _smbfs=         smbfs
766 _sound=         sound
767 _speaker=       speaker
768 _splash=        splash
769 _sppp=          sppp
770 _tpm=           tpm
771 _twa=           twa
772 _vesa=          vesa
773 _viawd=         viawd
774 _virtio=        virtio
775 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
776 _vmm=           vmm
777 .endif
778 _vxge=          vxge
779 _x86bios=       x86bios
780 _wbwd=          wbwd
781 _wi=            wi
782 _wpi=           wpi
783 .if ${MK_SOURCELESS_UCODE} != "no"
784 _wpifw=         wpifw
785 .endif
786 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
787 _zfs=           zfs
788 .endif
789 .endif
790
791 .if ${MACHINE_CPUARCH} == "arm"
792 _cfi=           cfi
793 _cpsw=          cpsw
794 .endif
795
796 .if ${MACHINE_CPUARCH} == "ia64"
797 _aac=           aac
798 _aacraid=       aacraid
799 _aic=           aic
800 _an=            an
801 _arcnet=        arcnet
802 _asr=           asr
803 _bktr=          bktr
804 _cardbus=       cardbus
805 _cbb=           cbb
806 _ciss=          ciss
807 _cm=            cm
808 _cmx=           cmx
809 _coff=          coff
810 _cpufreq=       cpufreq
811 _dpt=           dpt
812 _em=            em
813 _ep=            ep
814 _et=            et
815 _exca=          exca
816 _fe=            fe
817 _hptiop=        hptiop
818 _ida=           ida
819 _igb=           igb
820 _iir=           iir
821 _ips=           ips
822 _mly=           mly
823 _pccard=        pccard
824 _scsi_low=      scsi_low
825 _smbfs=         smbfs
826 _sound=         sound
827 _splash=        splash
828 _sppp=          sppp
829 _streams=       streams
830 _tpm=           tpm
831 _twa=           twa
832 _wi=            wi
833 _xe=            xe
834 .endif
835
836 .if ${MACHINE_CPUARCH} == "powerpc"
837 _agp=           agp
838 _an=            an
839 _bm=            bm
840 _cardbus=       cardbus
841 _cbb=           cbb
842 _cfi=           cfi
843 _cpufreq=       cpufreq
844 _drm=           drm
845 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
846 _dtrace=        dtrace
847 .endif
848 _exca=          exca
849 _nvram=         powermac_nvram
850 _pccard=        pccard
851 _smbfs=         smbfs
852 _sound=         sound
853 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
854 _opensolaris=   opensolaris
855 .endif
856 _wi=            wi
857 .endif
858
859 .if ${MACHINE_ARCH} == "powerpc64"
860 _drm2=          drm2
861 _i2c=           i2c
862 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
863 _zfs=           zfs
864 .endif
865 .endif
866
867 .if ${MACHINE_CPUARCH} == "sparc64"
868 _auxio=         auxio
869 _em=            em
870 _epic=          epic
871 _i2c=           i2c
872 _igb=           igb
873 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
874 _opensolaris=   opensolaris
875 .endif
876 _smbfs=         smbfs
877 _sound=         sound
878 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
879 _zfs=           zfs
880 .endif
881 .endif
882
883 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
884 SUBDIR=${MODULES_OVERRIDE}
885 .endif
886
887 .for reject in ${WITHOUT_MODULES}
888 SUBDIR:= ${SUBDIR:N${reject}}
889 .endfor
890
891 # Calling kldxref(8) for each module is expensive.
892 .if !defined(NO_XREF)
893 .MAKEFLAGS+=    -DNO_XREF
894 afterinstall:
895         @if type kldxref >/dev/null 2>&1; then \
896                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
897                 kldxref ${DESTDIR}${KMODDIR}; \
898         fi
899 .endif
900
901 .include <bsd.subdir.mk>