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