]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC r277728:
[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_AUTOFS} != "no" || defined(ALL_MODULES)
408 _autofs=        autofs
409 .endif
410
411 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
412 .if exists(${.CURDIR}/../opencrypto)
413 _crypto=        crypto
414 _cryptodev=     cryptodev
415 .endif
416 .if exists(${.CURDIR}/../crypto)
417 _random=        random
418 .endif
419 .endif
420
421 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
422         defined(ALL_MODULES)
423 _carp=  carp
424 _toecore=       toecore
425 .endif
426
427 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
428 _if_gre=        if_gre
429 .endif
430
431 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
432 _ipfilter=      ipfilter
433 .endif
434
435 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
436 _ipdivert=      ipdivert
437 _ipfw=          ipfw
438 .endif
439
440 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
441 SUBDIR+=        iscsi
442 SUBDIR+=        iscsi_initiator
443 .endif
444
445 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
446 _nandfs=        nandfs
447 _nandsim=       nandsim
448 .endif
449
450 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
451 _netgraph=      netgraph
452 .endif
453
454 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
455         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
456 _pf=            pf
457 _pflog=         pflog
458 .if ${MK_INET_SUPPORT} != "no"
459 _pfsync=        pfsync
460 .endif
461 .endif
462
463 .if ${MK_SOURCELESS_UCODE} != "no"
464 _bce=           bce
465 _fatm=          fatm
466 _fxp=           fxp
467 _ispfw=         ispfw
468 _mwlfw=         mwlfw
469 _ralfw=         ralfw
470 _sf=            sf
471 _sn=            sn
472 _ti=            ti
473 _txp=           txp
474 .endif
475
476 .if ${MACHINE_CPUARCH} == "i386"
477 # XXX some of these can move to the general case when de-i386'ed
478 # XXX some of these can move now, but are untested on other architectures.
479 _3dfx=          3dfx
480 _3dfx_linux=    3dfx_linux
481 _agp=           agp
482 _aic=           aic
483 _an=            an
484 _aout=          aout
485 _apm=           apm
486 _arcnet=        arcnet
487 _bktr=          bktr
488 _bxe=           bxe
489 _cardbus=       cardbus
490 _cbb=           cbb
491 .if ${MK_SOURCELESS_UCODE} != "no"
492 _ce=            ce
493 .endif
494 _coff=          coff
495 .if ${MK_SOURCELESS_UCODE} != "no"
496 _cp=            cp
497 .endif
498 _cpuctl=        cpuctl
499 _cpufreq=       cpufreq
500 _cs=            cs
501 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
502 _cyclic=        cyclic
503 .endif
504 _dpms=          dpms
505 _drm=           drm
506 _drm2=          drm2
507 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
508 _dtrace=        dtrace
509 .endif
510 _ed=            ed
511 _elink=         elink
512 _em=            em
513 _ep=            ep
514 _et=            et
515 _exca=          exca
516 _ext2fs=        ext2fs
517 _fe=            fe
518 _glxiic=        glxiic
519 _glxsb=         glxsb
520 _i2c=           i2c
521 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
522 _ibcore=        ibcore
523 .endif
524 _ibcs2=         ibcs2
525 _ie=            ie
526 _if_ndis=       if_ndis
527 _igb=           igb
528 _io=            io
529 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
530 _ipoib=         ipoib
531 .endif
532 _lindev=        lindev
533 _linprocfs=     linprocfs
534 _linsysfs=      linsysfs
535 _linux=         linux
536 _mse=           mse
537 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
538 _mlx4=          mlx4
539 _mlx4ib=        mlx4ib
540 _mlxen=         mlxen
541 _mthca=         mthca
542 .endif
543 _ncv=           ncv
544 _ndis=          ndis
545 _nsp=           nsp
546 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
547 _opensolaris=   opensolaris
548 .endif
549 _pccard=        pccard
550 _pcfclock=      pcfclock
551 _pst=           pst
552 _rdma=          rdma
553 _safe=          safe
554 _sbni=          sbni
555 _scsi_low=      scsi_low
556 _smbfs=         smbfs
557 _sound=         sound
558 _speaker=       speaker
559 _splash=        splash
560 _sppp=          sppp
561 _stg=           stg
562 _streams=       streams
563 _svr4=          svr4
564 _vxge=          vxge
565 _wbwd=          wbwd
566 _wi=            wi
567 _xe=            xe
568 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
569 _zfs=           zfs
570 .endif
571 .if ${MACHINE} == "i386"
572 _aac=           aac
573 _aacraid=       aacraid
574 _acpi=          acpi
575 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
576 _aesni=         aesni
577 .endif
578 _ahb=           ahb
579 _amdsbwd=       amdsbwd
580 _amdtemp=       amdtemp
581 _arcmsr=        arcmsr
582 _asmc=          asmc
583 _asr=           asr
584 _bios=          bios
585 _ciss=          ciss
586 _cm=            cm
587 _cmx=           cmx
588 _coretemp=      coretemp
589 .if ${MK_SOURCELESS_UCODE} != "no"
590 _ctau=          ctau
591 .endif
592 _dpt=           dpt
593 _ex=            ex
594 .if ${MK_SOURCELESS_HOST} != "no"
595 _hpt27xx=       hpt27xx
596 .endif
597 _hptiop=        hptiop
598 .if ${MK_SOURCELESS_HOST} != "no"
599 _hptmv=         hptmv
600 _hptnr=         hptnr
601 _hptrr=         hptrr
602 .endif
603 _hyperv=        hyperv
604 _ichwd=         ichwd
605 _ida=           ida
606 _iir=           iir
607 _ipmi=          ipmi
608 _ips=           ips
609 _ipw=           ipw
610 .if ${MK_SOURCELESS_UCODE} != "no"
611 _ipwfw=         ipwfw
612 .endif
613 _isci=          isci
614 _iwi=           iwi
615 .if ${MK_SOURCELESS_UCODE} != "no"
616 _iwifw=         iwifw
617 .endif
618 _iwn=           iwn
619 .if ${MK_SOURCELESS_UCODE} != "no"
620 _iwnfw=         iwnfw
621 .endif
622 _ixgb=          ixgb
623 _ixgbe=         ixgbe
624 _mly=           mly
625 _nfe=           nfe
626 _nvd=           nvd
627 .if ${MK_SOURCELESS_HOST} != "no"
628 _nve=           nve
629 .endif
630 _nvme=          nvme
631 _nvram=         nvram
632 _nxge=          nxge
633 _tpm=           tpm
634 _viawd=         viawd
635 _wpi=           wpi
636 .if ${MK_SOURCELESS_UCODE} != "no"
637 _wpifw=         wpifw
638 .endif
639 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
640 _padlock=       padlock
641 .endif
642 _s3=            s3
643 _twa=           twa
644 _vesa=          vesa
645 _virtio=        virtio
646 _x86bios=       x86bios
647 .elif ${MACHINE} == "pc98"
648 _canbepm=       canbepm
649 _canbus=        canbus
650 _ct=            ct
651 _pmc=           pmc
652 _snc=           snc
653 .endif
654 .endif
655
656 .if ${MACHINE_CPUARCH} == "amd64"
657 _aac=           aac
658 _aacraid=       aacraid
659 _aout=          aout
660 _acpi=          acpi
661 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
662 _aesni=         aesni
663 .endif
664 _agp=           agp
665 _an=            an
666 _amdsbwd=       amdsbwd
667 _amdtemp=       amdtemp
668 _arcmsr=        arcmsr
669 _asmc=          asmc
670 _bktr=          bktr
671 _bxe=           bxe
672 _cardbus=       cardbus
673 _cbb=           cbb
674 _cmx=           cmx
675 _ciss=          ciss
676 _coretemp=      coretemp
677 _cpuctl=        cpuctl
678 _cpufreq=       cpufreq
679 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
680 _cyclic=        cyclic
681 .endif
682 _dpms=          dpms
683 _drm=           drm
684 _drm2=          drm2
685 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
686 _dtrace=        dtrace
687 .endif
688 _ed=            ed
689 _et=            et
690 _em=            em
691 _exca=          exca
692 _ext2fs=        ext2fs
693 .if ${MK_SOURCELESS_HOST} != "no"
694 _hpt27xx=       hpt27xx
695 .endif
696 _hptiop=        hptiop
697 .if ${MK_SOURCELESS_HOST} != "no"
698 _hptmv=         hptmv
699 _hptnr=         hptnr
700 _hptrr=         hptrr
701 .endif
702 _hyperv=        hyperv
703 _i2c=           i2c
704 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
705 _ibcore=        ibcore
706 .endif
707 _ichwd=         ichwd
708 _ida=           ida
709 _if_ndis=       if_ndis
710 _igb=           igb
711 _iir=           iir
712 _io=            io
713 _ipmi=          ipmi
714 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
715 _ipoib=         ipoib
716 .endif
717 _ips=           ips
718 _ipw=           ipw
719 .if ${MK_SOURCELESS_UCODE} != "no"
720 _ipwfw=         ipwfw
721 .endif
722 _isci=          isci
723 _iwi=           iwi
724 .if ${MK_SOURCELESS_UCODE} != "no"
725 _iwifw=         iwifw
726 .endif
727 _iwn=           iwn
728 .if ${MK_SOURCELESS_UCODE} != "no"
729 _iwnfw=         iwnfw
730 .endif
731 _ixgb=          ixgb
732 _ixgbe=         ixgbe
733 _ixl=           ixl
734 _ixlv=          ixlv
735 _lindev=        lindev
736 _linprocfs=     linprocfs
737 _linsysfs=      linsysfs
738 _linux=         linux
739 _mly=           mly
740 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
741 _mlx4=          mlx4
742 _mlx4ib=        mlx4ib
743 _mlxen=         mlxen
744 _mthca=         mthca
745 .endif
746 _ndis=          ndis
747 _nfe=           nfe
748 _ntb=           ntb
749 _nvd=           nvd
750 .if ${MK_SOURCELESS_HOST} != "no"
751 _nve=           nve
752 .endif
753 _nvme=          nvme
754 _nvram=         nvram
755 _nxge=          nxge
756 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
757 _opensolaris=   opensolaris
758 .endif
759 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
760 _padlock=       padlock
761 .endif
762 _pccard=        pccard
763 _qlxge=         qlxge
764 _qlxgb=         qlxgb
765 _qlxgbe=        qlxgbe
766 _rdma=          rdma
767 _s3=            s3
768 _safe=          safe
769 _scsi_low=      scsi_low
770 _sfxge=         sfxge
771 _smbfs=         smbfs
772 _sound=         sound
773 _speaker=       speaker
774 _splash=        splash
775 _sppp=          sppp
776 _tpm=           tpm
777 _twa=           twa
778 _vesa=          vesa
779 _viawd=         viawd
780 _virtio=        virtio
781 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
782 _vmm=           vmm
783 .endif
784 _vxge=          vxge
785 _x86bios=       x86bios
786 _wbwd=          wbwd
787 _wi=            wi
788 _wpi=           wpi
789 .if ${MK_SOURCELESS_UCODE} != "no"
790 _wpifw=         wpifw
791 .endif
792 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
793 _zfs=           zfs
794 .endif
795 .endif
796
797 .if ${MACHINE_CPUARCH} == "arm"
798 _cfi=           cfi
799 _cpsw=          cpsw
800 .endif
801
802 .if ${MACHINE_CPUARCH} == "ia64"
803 _aac=           aac
804 _aacraid=       aacraid
805 _aic=           aic
806 _an=            an
807 _arcnet=        arcnet
808 _asr=           asr
809 _bktr=          bktr
810 _cardbus=       cardbus
811 _cbb=           cbb
812 _ciss=          ciss
813 _cm=            cm
814 _cmx=           cmx
815 _coff=          coff
816 _cpufreq=       cpufreq
817 _dpt=           dpt
818 _em=            em
819 _ep=            ep
820 _et=            et
821 _exca=          exca
822 _fe=            fe
823 _hptiop=        hptiop
824 _ida=           ida
825 _igb=           igb
826 _iir=           iir
827 _ips=           ips
828 _mly=           mly
829 _pccard=        pccard
830 _scsi_low=      scsi_low
831 _smbfs=         smbfs
832 _sound=         sound
833 _splash=        splash
834 _sppp=          sppp
835 _streams=       streams
836 _tpm=           tpm
837 _twa=           twa
838 _wi=            wi
839 _xe=            xe
840 .endif
841
842 .if ${MACHINE_CPUARCH} == "powerpc"
843 _agp=           agp
844 _an=            an
845 _bm=            bm
846 _cardbus=       cardbus
847 _cbb=           cbb
848 _cfi=           cfi
849 _cpufreq=       cpufreq
850 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
851 _cyclic=        cyclic
852 .endif
853 _drm=           drm
854 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
855 _dtrace=        dtrace
856 .endif
857 _exca=          exca
858 _nvram=         powermac_nvram
859 _pccard=        pccard
860 _smbfs=         smbfs
861 _sound=         sound
862 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
863 _opensolaris=   opensolaris
864 .endif
865 _wi=            wi
866 .endif
867
868 .if ${MACHINE_ARCH} == "powerpc64"
869 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
870 _zfs=           zfs
871 .endif
872 .endif
873
874 .if ${MACHINE_CPUARCH} == "sparc64"
875 _auxio=         auxio
876 _em=            em
877 _epic=          epic
878 _i2c=           i2c
879 _igb=           igb
880 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
881 _opensolaris=   opensolaris
882 .endif
883 _smbfs=         smbfs
884 _sound=         sound
885 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
886 _zfs=           zfs
887 .endif
888 .endif
889
890 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
891 SUBDIR=${MODULES_OVERRIDE}
892 .endif
893
894 .for reject in ${WITHOUT_MODULES}
895 SUBDIR:= ${SUBDIR:N${reject}}
896 .endfor
897
898 # Calling kldxref(8) for each module is expensive.
899 .if !defined(NO_XREF)
900 .MAKEFLAGS+=    -DNO_XREF
901 afterinstall:
902         @if type kldxref >/dev/null 2>&1; then \
903                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
904                 kldxref ${DESTDIR}${KMODDIR}; \
905         fi
906 .endif
907
908 .include <bsd.subdir.mk>