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