]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC r275576: remove opensolaris cyclic code, replace with high-precision callouts
[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         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         ${_imgact_binmisc} \
155         ${_io} \
156         ${_ipoib} \
157         ${_ipdivert} \
158         ${_ipfilter} \
159         ${_ipfw} \
160         ipfw_nat \
161         ${_ipmi} \
162         ip6_mroute_mod \
163         ip_mroute_mod \
164         ${_ips} \
165         ${_ipw} \
166         ${_ipwfw} \
167         ${_isci} \
168         isp \
169         ${_ispfw} \
170         ${_iwi} \
171         ${_iwifw} \
172         ${_iwn} \
173         ${_iwnfw} \
174         ${_ixgb} \
175         ${_ixgbe} \
176         ${_ixl} \
177         ${_ixlv} \
178         jme \
179         joy \
180         kbdmux \
181         kgssapi \
182         kgssapi_krb5 \
183         khelp \
184         krpc \
185         ksyms \
186         le \
187         lge \
188         libalias \
189         libiconv \
190         libmbpool \
191         libmchain \
192         ${_lindev} \
193         ${_linprocfs} \
194         ${_linsysfs} \
195         ${_linux} \
196         lmc \
197         lpt \
198         mac_biba \
199         mac_bsdextended \
200         mac_ifoff \
201         mac_lomac \
202         mac_mls \
203         mac_none \
204         mac_partition \
205         mac_portacl \
206         mac_seeotheruids \
207         mac_stub \
208         mac_test \
209         malo \
210         mcd \
211         md \
212         mem \
213         mfi \
214         mii \
215         mlx \
216         ${_mlx4} \
217         ${_mlx4ib} \
218         ${_mlxen} \
219         ${_mly} \
220         mmc \
221         mmcsd \
222         mpr \
223         mps \
224         mpt \
225         mqueue \
226         mrsas \
227         msdosfs \
228         msdosfs_iconv \
229         ${_mse} \
230         msk \
231         ${_mthca} \
232         mvs \
233         mwl \
234         ${_mwlfw} \
235         mxge \
236         my \
237         ${_nandfs} \
238         ${_nandsim} \
239         ${_ncp} \
240         ${_ncv} \
241         ${_ndis} \
242         netfpga10g \
243         ${_netgraph} \
244         ${_nfe} \
245         nfs_common \
246         nfscl \
247         nfsclient \
248         nfscommon \
249         nfsd \
250         nfslock \
251         nfslockd \
252         nfsserver \
253         nfssvc \
254         nge \
255         nmdm \
256         ${_nsp} \
257         nullfs \
258         ${_ntb} \
259         ${_nvd} \
260         ${_nve} \
261         ${_nvme} \
262         ${_nvram} \
263         ${_nxge} \
264         ${_opensolaris} \
265         oce \
266         ${_padlock} \
267         patm \
268         ${_pccard} \
269         ${_pcfclock} \
270         pcn \
271         ${_pf} \
272         ${_pflog} \
273         ${_pfsync} \
274         plip \
275         ${_pmc} \
276         ppbus \
277         ppc \
278         ppi \
279         pps \
280         procfs \
281         pseudofs \
282         ${_pst} \
283         pty  \
284         puc \
285         ${_qlxge} \
286         ${_qlxgb} \
287         ${_qlxgbe} \
288         ral \
289         ${_ralfw} \
290         ${_random} \
291         rc4 \
292         ${_rdma} \
293         re \
294         reiserfs \
295         rl \
296         ${_s3} \
297         ${_safe} \
298         ${_sbni} \
299         scc \
300         scd \
301         ${_scsi_low} \
302         sdhci \
303         sdhci_pci \
304         sem \
305         send \
306         ${_sf} \
307         ${_sfxge} \
308         sge \
309         siba_bwn \
310         siftr \
311         siis \
312         sis \
313         sk \
314         ${_smbfs} \
315         ${_sn} \
316         ${_snc} \
317         snp \
318         ${_sound} \
319         ${_speaker} \
320         ${_splash} \
321         ${_sppp} \
322         ste \
323         ${_stg} \
324         stge \
325         ${_streams} \
326         ${_svr4} \
327         ${_sym} \
328         ${_syscons} \
329         sysvipc \
330         ${_ti} \
331         tl \
332         tmpfs \
333         ${_toecore} \
334         ${_tpm} \
335         trm \
336         ${_twa} \
337         twe \
338         tws \
339         tx \
340         ${_txp} \
341         uart \
342         ubsec \
343         udf \
344         udf_iconv \
345         ufs \
346         unionfs \
347         usb \
348         utopia \
349         ${_vesa} \
350         ${_virtio} \
351         vge \
352         ${_viawd} \
353         vkbd \
354         ${_vmm} \
355         ${_vmware} \
356         ${_vpo} \
357         vr \
358         vte \
359         vx \
360         ${_vxge} \
361         wb \
362         ${_wbwd} \
363         ${_wi} \
364         wlan \
365         wlan_acl \
366         wlan_amrr \
367         wlan_ccmp \
368         wlan_rssadapt \
369         wlan_tkip \
370         wlan_wep \
371         wlan_xauth \
372         ${_wpi} \
373         ${_wpifw} \
374         ${_x86bios} \
375         ${_xe} \
376         xl \
377         ${_zfs} \
378         zlib \
379
380 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
381 _filemon=       filemon
382 _imgact_binmisc=        imgact_binmisc
383 _vmware=        vmware
384 .endif
385
386 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
387         ${MACHINE_CPUARCH} != "mips"
388 _syscons=       syscons
389 _vpo=           vpo
390 .endif
391
392 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
393 # no BUS_SPACE_UNSPECIFIED
394 # No barrier instruction support (specific to this driver)
395 _sym=           sym
396 # intr_disable() is a macro, causes problems
397 .if ${MK_SOURCELESS_UCODE} != "no"
398 _cxgb=          cxgb
399 .endif
400 .endif
401
402 .if ${MK_SOURCELESS_UCODE} != "no"
403 _cxgbe=         cxgbe
404 .endif
405
406 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
407 _autofs=        autofs
408 .endif
409
410 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
411 .if exists(${.CURDIR}/../opencrypto)
412 _crypto=        crypto
413 _cryptodev=     cryptodev
414 .endif
415 .if exists(${.CURDIR}/../crypto)
416 _random=        random
417 .endif
418 .endif
419
420 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
421         defined(ALL_MODULES)
422 _carp=  carp
423 _toecore=       toecore
424 .endif
425
426 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
427 _if_gre=        if_gre
428 .endif
429
430 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
431 _ipfilter=      ipfilter
432 .endif
433
434 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
435 _ipdivert=      ipdivert
436 _ipfw=          ipfw
437 .endif
438
439 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
440 SUBDIR+=        iscsi
441 SUBDIR+=        iscsi_initiator
442 .endif
443
444 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
445 _nandfs=        nandfs
446 _nandsim=       nandsim
447 .endif
448
449 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
450 _netgraph=      netgraph
451 .endif
452
453 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
454         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
455 _pf=            pf
456 _pflog=         pflog
457 .if ${MK_INET_SUPPORT} != "no"
458 _pfsync=        pfsync
459 .endif
460 .endif
461
462 .if ${MK_SOURCELESS_UCODE} != "no"
463 _bce=           bce
464 _fatm=          fatm
465 _fxp=           fxp
466 _ispfw=         ispfw
467 _mwlfw=         mwlfw
468 _ralfw=         ralfw
469 _sf=            sf
470 _sn=            sn
471 _ti=            ti
472 _txp=           txp
473 .endif
474
475 .if ${MACHINE_CPUARCH} == "i386"
476 # XXX some of these can move to the general case when de-i386'ed
477 # XXX some of these can move now, but are untested on other architectures.
478 _3dfx=          3dfx
479 _3dfx_linux=    3dfx_linux
480 _agp=           agp
481 _aic=           aic
482 _an=            an
483 _aout=          aout
484 _apm=           apm
485 _arcnet=        arcnet
486 _bktr=          bktr
487 _bxe=           bxe
488 _cardbus=       cardbus
489 _cbb=           cbb
490 .if ${MK_SOURCELESS_UCODE} != "no"
491 _ce=            ce
492 .endif
493 _coff=          coff
494 .if ${MK_SOURCELESS_UCODE} != "no"
495 _cp=            cp
496 .endif
497 _cpuctl=        cpuctl
498 _cpufreq=       cpufreq
499 _cs=            cs
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 _drm=           drm
847 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
848 _dtrace=        dtrace
849 .endif
850 _exca=          exca
851 _nvram=         powermac_nvram
852 _pccard=        pccard
853 _smbfs=         smbfs
854 _sound=         sound
855 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
856 _opensolaris=   opensolaris
857 .endif
858 _wi=            wi
859 .endif
860
861 .if ${MACHINE_ARCH} == "powerpc64"
862 _drm2=          drm2
863 _i2c=           i2c
864 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
865 _zfs=           zfs
866 .endif
867 .endif
868
869 .if ${MACHINE_CPUARCH} == "sparc64"
870 _auxio=         auxio
871 _em=            em
872 _epic=          epic
873 _i2c=           i2c
874 _igb=           igb
875 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
876 _opensolaris=   opensolaris
877 .endif
878 _smbfs=         smbfs
879 _sound=         sound
880 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
881 _zfs=           zfs
882 .endif
883 .endif
884
885 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
886 SUBDIR=${MODULES_OVERRIDE}
887 .endif
888
889 .for reject in ${WITHOUT_MODULES}
890 SUBDIR:= ${SUBDIR:N${reject}}
891 .endfor
892
893 # Calling kldxref(8) for each module is expensive.
894 .if !defined(NO_XREF)
895 .MAKEFLAGS+=    -DNO_XREF
896 afterinstall:
897         @if type kldxref >/dev/null 2>&1; then \
898                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
899                 kldxref ${DESTDIR}${KMODDIR}; \
900         fi
901 .endif
902
903 .include <bsd.subdir.mk>