]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370,
[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         ${_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         ${_lindev} \
192         ${_linprocfs} \
193         ${_linsysfs} \
194         ${_linux} \
195         lmc \
196         lpt \
197         mac_biba \
198         mac_bsdextended \
199         mac_ifoff \
200         mac_lomac \
201         mac_mls \
202         mac_none \
203         mac_partition \
204         mac_portacl \
205         mac_seeotheruids \
206         mac_stub \
207         mac_test \
208         malo \
209         mcd \
210         md \
211         mem \
212         mfi \
213         mii \
214         mlx \
215         ${_mlx4} \
216         ${_mlx4ib} \
217         ${_mlxen} \
218         ${_mly} \
219         mmc \
220         mmcsd \
221         mpr \
222         mps \
223         mpt \
224         mqueue \
225         mrsas \
226         msdosfs \
227         msdosfs_iconv \
228         ${_mse} \
229         msk \
230         ${_mthca} \
231         mvs \
232         mwl \
233         ${_mwlfw} \
234         mxge \
235         my \
236         ${_nandfs} \
237         ${_nandsim} \
238         ${_ncp} \
239         ${_ncv} \
240         ${_ndis} \
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         ${_nve} \
259         ${_nvme} \
260         ${_nvram} \
261         ${_nxge} \
262         ${_opensolaris} \
263         oce \
264         ${_padlock} \
265         patm \
266         ${_pccard} \
267         ${_pcfclock} \
268         pcn \
269         ${_pf} \
270         ${_pflog} \
271         ${_pfsync} \
272         plip \
273         ${_pmc} \
274         ppbus \
275         ppc \
276         ppi \
277         pps \
278         procfs \
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 _lindev=        lindev
520 _linprocfs=     linprocfs
521 _linsysfs=      linsysfs
522 _linux=         linux
523 _mse=           mse
524 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
525 _mlx4=          mlx4
526 _mlx4ib=        mlx4ib
527 _mlxen=         mlxen
528 _mthca=         mthca
529 .endif
530 _ncv=           ncv
531 _ndis=          ndis
532 _nsp=           nsp
533 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
534 _opensolaris=   opensolaris
535 .endif
536 _pccard=        pccard
537 _pcfclock=      pcfclock
538 _pst=           pst
539 _rdma=          rdma
540 _safe=          safe
541 _sbni=          sbni
542 _scsi_low=      scsi_low
543 _smbfs=         smbfs
544 _sound=         sound
545 _speaker=       speaker
546 _splash=        splash
547 _sppp=          sppp
548 _stg=           stg
549 _streams=       streams
550 _svr4=          svr4
551 _vxge=          vxge
552 _wbwd=          wbwd
553 _wi=            wi
554 _xe=            xe
555 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
556 _zfs=           zfs
557 .endif
558 .if ${MACHINE} == "i386"
559 _aac=           aac
560 _aacraid=       aacraid
561 _acpi=          acpi
562 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
563 _aesni=         aesni
564 .endif
565 _ahb=           ahb
566 _amdsbwd=       amdsbwd
567 _amdtemp=       amdtemp
568 _arcmsr=        arcmsr
569 _asmc=          asmc
570 _asr=           asr
571 _bios=          bios
572 _ciss=          ciss
573 _cm=            cm
574 _cmx=           cmx
575 _coretemp=      coretemp
576 .if ${MK_SOURCELESS_UCODE} != "no"
577 _ctau=          ctau
578 .endif
579 _dpt=           dpt
580 _ex=            ex
581 .if ${MK_SOURCELESS_HOST} != "no"
582 _hpt27xx=       hpt27xx
583 .endif
584 _hptiop=        hptiop
585 .if ${MK_SOURCELESS_HOST} != "no"
586 _hptmv=         hptmv
587 _hptnr=         hptnr
588 _hptrr=         hptrr
589 .endif
590 _hyperv=        hyperv
591 _ichwd=         ichwd
592 _ida=           ida
593 _iir=           iir
594 _ipmi=          ipmi
595 _ips=           ips
596 _ipw=           ipw
597 .if ${MK_SOURCELESS_UCODE} != "no"
598 _ipwfw=         ipwfw
599 .endif
600 _isci=          isci
601 _iwi=           iwi
602 .if ${MK_SOURCELESS_UCODE} != "no"
603 _iwifw=         iwifw
604 .endif
605 _iwn=           iwn
606 .if ${MK_SOURCELESS_UCODE} != "no"
607 _iwnfw=         iwnfw
608 .endif
609 _ixgb=          ixgb
610 _ixgbe=         ixgbe
611 _mly=           mly
612 _nfe=           nfe
613 _nvd=           nvd
614 .if ${MK_SOURCELESS_HOST} != "no"
615 _nve=           nve
616 .endif
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 _lindev=        lindev
721 _linprocfs=     linprocfs
722 _linsysfs=      linsysfs
723 _linux=         linux
724 _mly=           mly
725 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
726 _mlx4=          mlx4
727 _mlx4ib=        mlx4ib
728 _mlxen=         mlxen
729 _mthca=         mthca
730 .endif
731 _ndis=          ndis
732 _nfe=           nfe
733 _ntb=           ntb
734 _nvd=           nvd
735 .if ${MK_SOURCELESS_HOST} != "no"
736 _nve=           nve
737 .endif
738 _nvme=          nvme
739 _nvram=         nvram
740 _nxge=          nxge
741 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
742 _opensolaris=   opensolaris
743 .endif
744 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
745 _padlock=       padlock
746 .endif
747 _pccard=        pccard
748 _qlxge=         qlxge
749 _qlxgb=         qlxgb
750 _qlxgbe=        qlxgbe
751 _rdma=          rdma
752 _s3=            s3
753 _safe=          safe
754 _scsi_low=      scsi_low
755 _sfxge=         sfxge
756 _smbfs=         smbfs
757 _sound=         sound
758 _speaker=       speaker
759 _splash=        splash
760 _sppp=          sppp
761 _tpm=           tpm
762 _twa=           twa
763 _vesa=          vesa
764 _viawd=         viawd
765 _virtio=        virtio
766 _vmm=           vmm
767 _vxge=          vxge
768 _x86bios=       x86bios
769 _wbwd=          wbwd
770 _wi=            wi
771 _wpi=           wpi
772 .if ${MK_SOURCELESS_UCODE} != "no"
773 _wpifw=         wpifw
774 .endif
775 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
776 _zfs=           zfs
777 .endif
778 .endif
779
780 .if ${MACHINE_CPUARCH} == "arm"
781 _cfi=           cfi
782 _cpsw=          cpsw
783 .endif
784
785 .if ${MACHINE_CPUARCH} == "ia64"
786 _aac=           aac
787 _aacraid=       aacraid
788 _aic=           aic
789 _an=            an
790 _arcnet=        arcnet
791 _asr=           asr
792 _bktr=          bktr
793 _cardbus=       cardbus
794 _cbb=           cbb
795 _ciss=          ciss
796 _cm=            cm
797 _cmx=           cmx
798 _coff=          coff
799 _cpufreq=       cpufreq
800 _dpt=           dpt
801 _em=            em
802 _ep=            ep
803 _et=            et
804 _exca=          exca
805 _fe=            fe
806 _hptiop=        hptiop
807 _ida=           ida
808 _igb=           igb
809 _iir=           iir
810 _ips=           ips
811 _mly=           mly
812 _pccard=        pccard
813 _scsi_low=      scsi_low
814 _smbfs=         smbfs
815 _sound=         sound
816 _splash=        splash
817 _sppp=          sppp
818 _streams=       streams
819 _tpm=           tpm
820 _twa=           twa
821 _wi=            wi
822 _xe=            xe
823 .endif
824
825 .if ${MACHINE_CPUARCH} == "powerpc"
826 _agp=           agp
827 _an=            an
828 _bm=            bm
829 _cardbus=       cardbus
830 _cbb=           cbb
831 _cfi=           cfi
832 _cpufreq=       cpufreq
833 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
834 _cyclic=        cyclic
835 .endif
836 _drm=           drm
837 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
838 _dtrace=        dtrace
839 .endif
840 _exca=          exca
841 _nvram=         powermac_nvram
842 _pccard=        pccard
843 _smbfs=         smbfs
844 _sound=         sound
845 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
846 _opensolaris=   opensolaris
847 .endif
848 _wi=            wi
849 .endif
850
851 .if ${MACHINE_ARCH} == "powerpc64"
852 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
853 _zfs=           zfs
854 .endif
855 .endif
856
857 .if ${MACHINE_CPUARCH} == "sparc64"
858 _auxio=         auxio
859 _em=            em
860 _epic=          epic
861 _i2c=           i2c
862 _igb=           igb
863 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
864 _opensolaris=   opensolaris
865 .endif
866 _smbfs=         smbfs
867 _sound=         sound
868 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
869 _zfs=           zfs
870 .endif
871 .endif
872
873 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
874 SUBDIR=${MODULES_OVERRIDE}
875 .endif
876
877 .for reject in ${WITHOUT_MODULES}
878 SUBDIR:= ${SUBDIR:N${reject}}
879 .endfor
880
881 # Calling kldxref(8) for each module is expensive.
882 .if !defined(NO_XREF)
883 .MAKEFLAGS+=    -DNO_XREF
884 afterinstall:
885         @if type kldxref >/dev/null 2>&1; then \
886                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
887                 kldxref ${DESTDIR}${KMODDIR}; \
888         fi
889 .endif
890
891 .include <bsd.subdir.mk>