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