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