]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC 265555
[FreeBSD/stable/10.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_ef \
140         if_epair \
141         if_faith \
142         if_gif \
143         ${_if_gre} \
144         if_lagg \
145         ${_if_ndis} \
146         if_stf \
147         if_tap \
148         if_tun \
149         if_vlan \
150         ${_igb} \
151         ${_iir} \
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         mpr \
220         mps \
221         mpt \
222         mqueue \
223         mrsas \
224         msdosfs \
225         msdosfs_iconv \
226         ${_mse} \
227         msk \
228         ${_mthca} \
229         mvs \
230         mwl \
231         ${_mwlfw} \
232         mxge \
233         my \
234         ${_nandfs} \
235         ${_nandsim} \
236         ${_ncp} \
237         ${_ncv} \
238         ${_ndis} \
239         ${_netgraph} \
240         ${_nfe} \
241         nfs_common \
242         nfscl \
243         nfsclient \
244         nfscommon \
245         nfsd \
246         nfslock \
247         nfslockd \
248         nfsserver \
249         nfssvc \
250         nge \
251         nmdm \
252         ${_nsp} \
253         nullfs \
254         ${_ntb} \
255         ${_nvd} \
256         ${_nve} \
257         ${_nvme} \
258         ${_nvram} \
259         ${_nxge} \
260         ${_opensolaris} \
261         oce \
262         ${_padlock} \
263         patm \
264         ${_pccard} \
265         ${_pcfclock} \
266         pcn \
267         ${_pf} \
268         ${_pflog} \
269         ${_pfsync} \
270         plip \
271         ${_pmc} \
272         ppbus \
273         ppc \
274         ppi \
275         pps \
276         procfs \
277         pseudofs \
278         ${_pst} \
279         pty  \
280         puc \
281         ${_qlxge} \
282         ${_qlxgb} \
283         ${_qlxgbe} \
284         ral \
285         ${_ralfw} \
286         ${_random} \
287         rc4 \
288         ${_rdma} \
289         re \
290         reiserfs \
291         rl \
292         ${_s3} \
293         ${_safe} \
294         ${_sbni} \
295         scc \
296         scd \
297         ${_scsi_low} \
298         sdhci \
299         sdhci_pci \
300         sem \
301         send \
302         ${_sf} \
303         ${_sfxge} \
304         sge \
305         siba_bwn \
306         siftr \
307         siis \
308         sis \
309         sk \
310         ${_smbfs} \
311         ${_sn} \
312         ${_snc} \
313         snp \
314         ${_sound} \
315         ${_speaker} \
316         ${_splash} \
317         ${_sppp} \
318         ste \
319         ${_stg} \
320         stge \
321         ${_streams} \
322         ${_svr4} \
323         ${_sym} \
324         ${_syscons} \
325         sysvipc \
326         ${_ti} \
327         tl \
328         tmpfs \
329         ${_toecore} \
330         ${_tpm} \
331         trm \
332         ${_twa} \
333         twe \
334         tws \
335         tx \
336         ${_txp} \
337         uart \
338         ubsec \
339         udf \
340         udf_iconv \
341         ufs \
342         unionfs \
343         usb \
344         utopia \
345         ${_vesa} \
346         ${_virtio} \
347         vge \
348         ${_viawd} \
349         vkbd \
350         ${_vmm} \
351         ${_vmware} \
352         ${_vpo} \
353         vr \
354         vte \
355         vx \
356         ${_vxge} \
357         wb \
358         ${_wbwd} \
359         ${_wi} \
360         wlan \
361         wlan_acl \
362         wlan_amrr \
363         wlan_ccmp \
364         wlan_rssadapt \
365         wlan_tkip \
366         wlan_wep \
367         wlan_xauth \
368         ${_wpi} \
369         ${_wpifw} \
370         ${_x86bios} \
371         ${_xe} \
372         xl \
373         ${_zfs} \
374         zlib \
375
376 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
377 _filemon=       filemon
378 _vmware=        vmware
379 .endif
380
381 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
382         ${MACHINE_CPUARCH} != "mips"
383 _syscons=       syscons
384 _vpo=           vpo
385 .endif
386
387 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
388 # no BUS_SPACE_UNSPECIFIED
389 # No barrier instruction support (specific to this driver)
390 _sym=           sym
391 # intr_disable() is a macro, causes problems
392 .if ${MK_SOURCELESS_UCODE} != "no"
393 _cxgb=          cxgb
394 .endif
395 .endif
396
397 .if ${MK_SOURCELESS_UCODE} != "no"
398 _cxgbe=         cxgbe
399 .endif
400
401 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
402 .if exists(${.CURDIR}/../opencrypto)
403 _crypto=        crypto
404 _cryptodev=     cryptodev
405 .endif
406 .if exists(${.CURDIR}/../crypto)
407 _random=        random
408 .endif
409 .endif
410
411 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
412         defined(ALL_MODULES)
413 _carp=  carp
414 _toecore=       toecore
415 .endif
416
417 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
418 _if_gre=        if_gre
419 .endif
420
421 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
422 _ipfilter=      ipfilter
423 .endif
424
425 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
426 _ipdivert=      ipdivert
427 _ipfw=          ipfw
428 .endif
429
430 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
431 _nandfs=        nandfs
432 _nandsim=       nandsim
433 .endif
434
435 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
436 _netgraph=      netgraph
437 .endif
438
439 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
440         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
441 _pf=            pf
442 _pflog=         pflog
443 .if ${MK_INET_SUPPORT} != "no"
444 _pfsync=        pfsync
445 .endif
446 .endif
447
448 .if ${MK_SOURCELESS_UCODE} != "no"
449 _bce=           bce
450 _fatm=          fatm
451 _fxp=           fxp
452 _ispfw=         ispfw
453 _mwlfw=         mwlfw
454 _ralfw=         ralfw
455 _sf=            sf
456 _sn=            sn
457 _ti=            ti
458 _txp=           txp
459 .endif
460
461 .if ${MACHINE_CPUARCH} == "i386"
462 # XXX some of these can move to the general case when de-i386'ed
463 # XXX some of these can move now, but are untested on other architectures.
464 _3dfx=          3dfx
465 _3dfx_linux=    3dfx_linux
466 _agp=           agp
467 _aic=           aic
468 _an=            an
469 _aout=          aout
470 _apm=           apm
471 _arcnet=        arcnet
472 _bktr=          bktr
473 _bxe=           bxe
474 _cardbus=       cardbus
475 _cbb=           cbb
476 .if ${MK_SOURCELESS_UCODE} != "no"
477 _ce=            ce
478 .endif
479 _coff=          coff
480 .if ${MK_SOURCELESS_UCODE} != "no"
481 _cp=            cp
482 .endif
483 _cpuctl=        cpuctl
484 _cpufreq=       cpufreq
485 _cs=            cs
486 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
487 _cyclic=        cyclic
488 .endif
489 _dpms=          dpms
490 _drm=           drm
491 _drm2=          drm2
492 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
493 _dtrace=        dtrace
494 .endif
495 _ed=            ed
496 _elink=         elink
497 _em=            em
498 _ep=            ep
499 _et=            et
500 _exca=          exca
501 _ext2fs=        ext2fs
502 _fe=            fe
503 _glxiic=        glxiic
504 _glxsb=         glxsb
505 _i2c=           i2c
506 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
507 _ibcore=        ibcore
508 .endif
509 _ibcs2=         ibcs2
510 _ie=            ie
511 _if_ndis=       if_ndis
512 _igb=           igb
513 _io=            io
514 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
515 _ipoib=         ipoib
516 .endif
517 _lindev=        lindev
518 _linprocfs=     linprocfs
519 _linsysfs=      linsysfs
520 _linux=         linux
521 _mse=           mse
522 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
523 _mlx4=          mlx4
524 _mlx4ib=        mlx4ib
525 _mlxen=         mlxen
526 _mthca=         mthca
527 .endif
528 _ncv=           ncv
529 _ndis=          ndis
530 _nsp=           nsp
531 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
532 _opensolaris=   opensolaris
533 .endif
534 _pccard=        pccard
535 _pcfclock=      pcfclock
536 _pst=           pst
537 _rdma=          rdma
538 _safe=          safe
539 _sbni=          sbni
540 _scsi_low=      scsi_low
541 _smbfs=         smbfs
542 _sound=         sound
543 _speaker=       speaker
544 _splash=        splash
545 _sppp=          sppp
546 _stg=           stg
547 _streams=       streams
548 _svr4=          svr4
549 _vxge=          vxge
550 _wbwd=          wbwd
551 _wi=            wi
552 _xe=            xe
553 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
554 _zfs=           zfs
555 .endif
556 .if ${MACHINE} == "i386"
557 _aac=           aac
558 _aacraid=       aacraid
559 _acpi=          acpi
560 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
561 _aesni=         aesni
562 .endif
563 _ahb=           ahb
564 _amdsbwd=       amdsbwd
565 _amdtemp=       amdtemp
566 _arcmsr=        arcmsr
567 _asmc=          asmc
568 _asr=           asr
569 _bios=          bios
570 _ciss=          ciss
571 _cm=            cm
572 _cmx=           cmx
573 _coretemp=      coretemp
574 .if ${MK_SOURCELESS_UCODE} != "no"
575 _ctau=          ctau
576 .endif
577 _dpt=           dpt
578 _ex=            ex
579 .if ${MK_SOURCELESS_HOST} != "no"
580 _hpt27xx=       hpt27xx
581 .endif
582 _hptiop=        hptiop
583 .if ${MK_SOURCELESS_HOST} != "no"
584 _hptmv=         hptmv
585 _hptnr=         hptnr
586 _hptrr=         hptrr
587 .endif
588 _hyperv=        hyperv
589 _ichwd=         ichwd
590 _ida=           ida
591 _iir=           iir
592 _ipmi=          ipmi
593 _ips=           ips
594 _ipw=           ipw
595 .if ${MK_SOURCELESS_UCODE} != "no"
596 _ipwfw=         ipwfw
597 .endif
598 _isci=          isci
599 _iwi=           iwi
600 .if ${MK_SOURCELESS_UCODE} != "no"
601 _iwifw=         iwifw
602 .endif
603 _iwn=           iwn
604 .if ${MK_SOURCELESS_UCODE} != "no"
605 _iwnfw=         iwnfw
606 .endif
607 _ixgb=          ixgb
608 _ixgbe=         ixgbe
609 _mly=           mly
610 _nfe=           nfe
611 _nvd=           nvd
612 .if ${MK_SOURCELESS_HOST} != "no"
613 _nve=           nve
614 .endif
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 .if ${MK_SOURCELESS_HOST} != "no"
734 _nve=           nve
735 .endif
736 _nvme=          nvme
737 _nvram=         nvram
738 _nxge=          nxge
739 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
740 _opensolaris=   opensolaris
741 .endif
742 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
743 _padlock=       padlock
744 .endif
745 _pccard=        pccard
746 _qlxge=         qlxge
747 _qlxgb=         qlxgb
748 _qlxgbe=        qlxgbe
749 _rdma=          rdma
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>