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