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