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