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