]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
MFV r329799, r329800:
[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         ${_arcnet} \
46         ${_armv8crypto} \
47         ${_asmc} \
48         ata \
49         ath \
50         ath_dfs \
51         ath_hal \
52         ath_hal_ar5210 \
53         ath_hal_ar5211 \
54         ath_hal_ar5212 \
55         ath_hal_ar5416 \
56         ath_hal_ar9300 \
57         ath_main \
58         ath_rate \
59         ath_pci \
60         ${_autofs} \
61         ${_auxio} \
62         ${_bce} \
63         ${_bcm283x_clkman} \
64         ${_bcm283x_pwm} \
65         bfe \
66         bge \
67         bhnd \
68         ${_bxe} \
69         ${_bios} \
70         ${_bktr} \
71         ${_bm} \
72         bnxt \
73         bridgestp \
74         bwi \
75         bwn \
76         ${_bytgpio} \
77         cam \
78         ${_cardbus} \
79         ${_carp} \
80         cas \
81         ${_cbb} \
82         cc \
83         ${_ccp} \
84         cd9660 \
85         cd9660_iconv \
86         ${_ce} \
87         ${_cfi} \
88         chacha20 \
89         ${_chromebook_platform} \
90         ${_ciss} \
91         cloudabi \
92         ${_cloudabi32} \
93         ${_cloudabi64} \
94         ${_cm} \
95         ${_cmx} \
96         ${_coff} \
97         ${_coretemp} \
98         ${_cp} \
99         ${_cpsw} \
100         ${_cpuctl} \
101         ${_cpufreq} \
102         ${_crypto} \
103         ${_cryptodev} \
104         ${_cs} \
105         ${_ctau} \
106         ctl \
107         ${_cxgb} \
108         ${_cxgbe} \
109         dc \
110         dcons \
111         dcons_crom \
112         de \
113         ${_dpms} \
114         ${_dpt} \
115         ${_drm} \
116         ${_drm2} \
117         dummynet \
118         ${_ed} \
119         ${_efirt} \
120         ${_em} \
121         ${_ena} \
122         ${_ep} \
123         ${_epic} \
124         esp \
125         ${_et} \
126         evdev \
127         ${_ex} \
128         ${_exca} \
129         ext2fs \
130         fdc \
131         fdescfs \
132         ${_fe} \
133         ${_ffec} \
134         filemon \
135         firewire \
136         firmware \
137         fuse \
138         ${_fxp} \
139         gem \
140         geom \
141         ${_glxiic} \
142         ${_glxsb} \
143         gpio \
144         hifn \
145         hme \
146         ${_hpt27xx} \
147         ${_hptiop} \
148         ${_hptmv} \
149         ${_hptnr} \
150         ${_hptrr} \
151         hwpmc \
152         ${_hwpmc_mips24k} \
153         ${_hwpmc_mips74k} \
154         ${_hyperv} \
155         i2c \
156         ${_ibcore} \
157         ${_ibcs2} \
158         ${_ichwd} \
159         ${_ida} \
160         if_bridge \
161         if_disc \
162         if_edsc \
163         ${_if_enc} \
164         if_epair \
165         ${_if_gif} \
166         ${_if_gre} \
167         ${_if_me} \
168         if_lagg \
169         ${_if_ndis} \
170         ${_if_stf} \
171         if_tap \
172         if_tun \
173         if_vlan \
174         if_vxlan \
175         ${_iir} \
176         imgact_binmisc \
177         ${_intelspi} \
178         ${_io} \
179         ${_ioat} \
180         ${_ipoib} \
181         ${_ipdivert} \
182         ${_ipfilter} \
183         ${_ipfw} \
184         ipfw_nat \
185         ${_ipfw_nat64} \
186         ${_ipfw_nptv6} \
187         ${_ipfw_pmod} \
188         ${_ipmi} \
189         ip6_mroute_mod \
190         ip_mroute_mod \
191         ${_ips} \
192         ${_ipsec} \
193         ${_ipw} \
194         ${_ipwfw} \
195         ${_isci} \
196         ${_iser} \
197         isp \
198         ${_ispfw} \
199         ${_iwi} \
200         ${_iwifw} \
201         ${_iwm} \
202         ${_iwmfw} \
203         ${_iwn} \
204         ${_iwnfw} \
205         ${_ix} \
206         ${_ixv} \
207         ${_ixgb} \
208         ${_ixl} \
209         ${_ixlv} \
210         jme \
211         joy \
212         kbdmux \
213         kgssapi \
214         kgssapi_krb5 \
215         khelp \
216         krpc \
217         ksyms \
218         le \
219         lge \
220         libalias \
221         libiconv \
222         libmchain \
223         ${_linprocfs} \
224         ${_linsysfs} \
225         ${_linux} \
226         ${_linux_common} \
227         ${_linux64} \
228         linuxkpi \
229         ${_lio} \
230         lmc \
231         lpt \
232         mac_biba \
233         mac_bsdextended \
234         mac_ifoff \
235         mac_lomac \
236         mac_mls \
237         mac_none \
238         mac_partition \
239         mac_portacl \
240         mac_seeotheruids \
241         mac_stub \
242         mac_test \
243         malo \
244         md \
245         mdio \
246         mem \
247         mfi \
248         mii \
249         mlx \
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         ${_netgraph} \
281         ${_nfe} \
282         nfscl \
283         nfscommon \
284         nfsd \
285         nfslock \
286         nfslockd \
287         nfssvc \
288         nge \
289         nmdm \
290         ${_nsp} \
291         nullfs \
292         ${_ntb} \
293         ${_nvd} \
294         ${_nvme} \
295         ${_nvram} \
296         ${_nxge} \
297         oce \
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 _pccard=        pccard
612 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
613 _rdma=          rdma
614 .endif
615 _safe=          safe
616 _scsi_low=      scsi_low
617 _speaker=       speaker
618 _splash=        splash
619 _sppp=          sppp
620 _vmware=        vmware
621 _vxge=          vxge
622 _wbwd=          wbwd
623 _wi=            wi
624 _xe=            xe
625
626 _aac=           aac
627 _aacraid=       aacraid
628 _acpi=          acpi
629 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
630 _aesni=         aesni
631 .endif
632 _amd_ecc_inject=amd_ecc_inject
633 _amdsbwd=       amdsbwd
634 _amdsmn=        amdsmn
635 _amdtemp=       amdtemp
636 _arcmsr=        arcmsr
637 _asmc=          asmc
638 _bytgpio=       bytgpio
639 _ciss=          ciss
640 _chromebook_platform=   chromebook_platform
641 _cmx=           cmx
642 _coretemp=      coretemp
643 .if ${MK_SOURCELESS_HOST} != "no"
644 _hpt27xx=       hpt27xx
645 .endif
646 _hptiop=        hptiop
647 .if ${MK_SOURCELESS_HOST} != "no"
648 _hptmv=         hptmv
649 _hptnr=         hptnr
650 _hptrr=         hptrr
651 .endif
652 _hyperv=        hyperv
653 _ichwd=         ichwd
654 _ida=           ida
655 _iir=           iir
656 _intelspi=      intelspi
657 _ipmi=          ipmi
658 _ips=           ips
659 _isci=          isci
660 _ipw=           ipw
661 _iwi=           iwi
662 _iwm=           iwm
663 _iwn=           iwn
664 _ixgb=          ixgb
665 .if ${MK_SOURCELESS_UCODE} != "no"
666 _ipwfw=         ipwfw
667 _iwifw=         iwifw
668 _iwmfw=         iwmfw
669 _iwnfw=         iwnfw
670 .endif
671 _mlx4=          mlx4
672 _mlx5=          mlx5
673 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
674         defined(ALL_MODULES)
675 _mlx4en=        mlx4en
676 _mlx5en=        mlx5en
677 .endif
678 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
679 _mthca=         mthca
680 _mlx4ib=        mlx4ib
681 _mlx5ib=        mlx5ib
682 .endif
683 _mly=           mly
684 _nfe=           nfe
685 _nvd=           nvd
686 _nvme=          nvme
687 _nvram=         nvram
688 _nxge=          nxge
689 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
690 _padlock=       padlock
691 _padlock_rng=   padlock_rng
692 _rdrand_rng=    rdrand_rng
693 .endif
694 _s3=            s3
695 _sdhci_acpi=    sdhci_acpi
696 _tpm=           tpm
697 _twa=           twa
698 _vesa=          vesa
699 _viawd=         viawd
700 _virtio=        virtio
701 _wpi=           wpi
702 .if ${MK_SOURCELESS_UCODE} != "no"
703 _wpifw=         wpifw
704 .endif
705 _x86bios=       x86bios
706 .endif
707
708 .if ${MACHINE_CPUARCH} == "amd64"
709 _ccp=           ccp
710 _efirt=         efirt
711 _ioat=          ioat
712 _ixl=           ixl
713 _ixlv=          ixlv
714 _linux64=       linux64
715 _linux_common=  linux_common
716 _ntb=           ntb
717 _pms=           pms
718 _qlxge=         qlxge
719 _qlxgb=         qlxgb
720 .if ${MK_SOURCELESS_UCODE} != "no"
721 _qlxgbe=        qlxgbe
722 _qlnx=          qlnx
723 .endif
724 _sfxge=         sfxge
725 _sgx=           sgx
726 _sgx_linux=     sgx_linux
727
728 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
729 _vmm=           vmm
730 .endif
731 .endif
732
733 .if ${MACHINE_CPUARCH} == "i386"
734 # XXX some of these can move to the general case when de-i386'ed
735 # XXX some of these can move now, but are untested on other architectures.
736 _3dfx=          3dfx
737 _3dfx_linux=    3dfx_linux
738 _aic=           aic
739 _apm=           apm
740 _arcnet=        arcnet
741 .if ${MK_SOURCELESS_UCODE} != "no"
742 _ce=            ce
743 .endif
744 _coff=          coff
745 .if ${MK_SOURCELESS_UCODE} != "no"
746 _cp=            cp
747 .endif
748 _glxiic=        glxiic
749 _glxsb=         glxsb
750 #_ibcs2=                ibcs2
751 _mse=           mse
752 _ncr=           ncr
753 _ncv=           ncv
754 _nsp=           nsp
755 _pcfclock=      pcfclock
756 _pst=           pst
757 _sbni=          sbni
758 _stg=           stg
759 _cm=            cm
760 .if ${MK_SOURCELESS_UCODE} != "no"
761 _ctau=          ctau
762 .endif
763 _dpt=           dpt
764 _ex=            ex
765 .endif
766
767 .if ${MACHINE_CPUARCH} == "arm"
768 _cfi=           cfi
769 _cpsw=          cpsw
770 .endif
771
772 .if ${MACHINE_CPUARCH} == "powerpc"
773 _agp=           agp
774 _an=            an
775 _bm=            bm
776 _cardbus=       cardbus
777 _cbb=           cbb
778 _cfi=           cfi
779 _cpufreq=       cpufreq
780 _drm=           drm
781 _exca=          exca
782 _ffec=          ffec
783 _pccard=        pccard
784 _wi=            wi
785 .endif
786
787 .if ${MACHINE_ARCH} == "powerpc64"
788 _drm2=          drm2
789 .endif
790 .if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc"
791 # Don't build powermac_nvram for powerpcspe, it's never supported.
792 _nvram=         powermac_nvram
793 .endif
794
795 .if ${MACHINE_CPUARCH} == "sparc64"
796 _auxio=         auxio
797 _em=            em
798 _epic=          epic
799 .endif
800
801 .if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
802      ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386")
803 _cloudabi32=    cloudabi32
804 .endif
805 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
806 _cloudabi64=    cloudabi64
807 .endif
808
809 .endif
810
811 .if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
812 _bcm283x_clkman=  bcm283x_clkman
813 _bcm283x_pwm=  bcm283x_pwm
814 .endif
815
816 SUBDIR+=${MODULES_EXTRA}
817
818 .for reject in ${WITHOUT_MODULES}
819 SUBDIR:= ${SUBDIR:N${reject}}
820 .endfor
821
822 # Calling kldxref(8) for each module is expensive.
823 .if !defined(NO_XREF)
824 .MAKEFLAGS+=    -DNO_XREF
825 afterinstall: .PHONY
826         @if type kldxref >/dev/null 2>&1; then \
827                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
828                 kldxref ${DESTDIR}${KMODDIR}; \
829         fi
830 .endif
831
832 .include "${SYSDIR}/conf/config.mk"
833
834 SUBDIR:= ${SUBDIR:u:O}
835
836 .include <bsd.subdir.mk>