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