1# $FreeBSD$ 2 3SYSDIR?=${SRCTOP}/sys 4.include "${SYSDIR}/conf/kern.opts.mk" 5 6SUBDIR_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) 12SUBDIR=${MODULES_OVERRIDE} 13.else 14SUBDIR= \ 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 ${_allwinner} \ 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 ${_blake2} \ 72 ${_bm} \ 73 bnxt \ 74 bridgestp \ 75 bwi \ 76 bwn \ 77 ${_bytgpio} \ 78 ${_chvgpio} \ 79 cam \ 80 ${_cardbus} \ 81 ${_carp} \ 82 cas \ 83 ${_cbb} \ 84 cc \ 85 ${_ccp} \ 86 cd9660 \ 87 cd9660_iconv \ 88 ${_ce} \ 89 ${_cfi} \ 90 ${_chromebook_platform} \ 91 ${_ciss} \ 92 cloudabi \ 93 ${_cloudabi32} \ 94 ${_cloudabi64} \ 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 ${_ixl} \ 208 jme \ 209 joy \ 210 kbdmux \ 211 kgssapi \ 212 kgssapi_krb5 \ 213 khelp \ 214 krpc \ 215 ksyms \ 216 le \ 217 lge \ 218 libalias \ 219 libiconv \ 220 libmchain \ 221 ${_linux} \ 222 ${_linux_common} \ 223 ${_linux64} \ 224 linuxkpi \ 225 ${_lio} \ 226 lpt \ 227 mac_biba \ 228 mac_bsdextended \ 229 mac_ifoff \ 230 mac_lomac \ 231 mac_mls \ 232 mac_none \ 233 mac_partition \ 234 mac_portacl \ 235 mac_seeotheruids \ 236 mac_stub \ 237 mac_test \ 238 mac_veriexec \ 239 mac_veriexec_rmd160 \ 240 mac_veriexec_sha1 \ 241 mac_veriexec_sha256 \ 242 mac_veriexec_sha384 \ 243 mac_veriexec_sha512 \ 244 malo \ 245 md \ 246 mdio \ 247 mem \ 248 mfi \ 249 mii \ 250 mlx \ 251 ${_mlx4} \ 252 ${_mlx4ib} \ 253 ${_mlx4en} \ 254 ${_mlx5} \ 255 ${_mlx5en} \ 256 ${_mlx5ib} \ 257 ${_mly} \ 258 mmc \ 259 mmcsd \ 260 mpr \ 261 mps \ 262 mpt \ 263 mqueue \ 264 mrsas \ 265 msdosfs \ 266 msdosfs_iconv \ 267 ${_mse} \ 268 msk \ 269 ${_mthca} \ 270 mvs \ 271 mwl \ 272 ${_mwlfw} \ 273 mxge \ 274 my \ 275 ${_nandfs} \ 276 ${_nandsim} \ 277 ${_ncr} \ 278 ${_nctgpio} \ 279 ${_ncv} \ 280 ${_ndis} \ 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 oce \ 298 ${_ocs_fc} \ 299 otus \ 300 ${_otusfw} \ 301 ow \ 302 ${_padlock} \ 303 ${_padlock_rng} \ 304 ${_pccard} \ 305 ${_pcfclock} \ 306 pcn \ 307 ${_pf} \ 308 ${_pflog} \ 309 ${_pfsync} \ 310 plip \ 311 ${_pms} \ 312 ppbus \ 313 ppc \ 314 ppi \ 315 pps \ 316 procfs \ 317 proto \ 318 pseudofs \ 319 ${_pst} \ 320 pty \ 321 puc \ 322 ${_qlxge} \ 323 ${_qlxgb} \ 324 ${_qlxgbe} \ 325 ${_qlnx} \ 326 ral \ 327 ${_ralfw} \ 328 ${_random_fortuna} \ 329 ${_random_yarrow} \ 330 ${_random_other} \ 331 rc4 \ 332 ${_rdma} \ 333 ${_rdrand_rng} \ 334 re \ 335 rl \ 336 ${_rockchip} \ 337 rtwn \ 338 rtwn_pci \ 339 rtwn_usb \ 340 ${_rtwnfw} \ 341 ${_s3} \ 342 ${_safe} \ 343 ${_sbni} \ 344 scc \ 345 ${_scsi_low} \ 346 sdhci \ 347 ${_sdhci_acpi} \ 348 sdhci_pci \ 349 sem \ 350 send \ 351 ${_sf} \ 352 ${_sfxge} \ 353 sge \ 354 ${_sgx} \ 355 ${_sgx_linux} \ 356 siftr \ 357 siis \ 358 sis \ 359 sk \ 360 ${_smartpqi} \ 361 smbfs \ 362 sn \ 363 snp \ 364 sound \ 365 ${_speaker} \ 366 spi \ 367 ${_splash} \ 368 ${_sppp} \ 369 ste \ 370 ${_stg} \ 371 stge \ 372 ${_sym} \ 373 ${_syscons} \ 374 sysvipc \ 375 tcp \ 376 ${_ti} \ 377 tl \ 378 tmpfs \ 379 ${_toecore} \ 380 ${_tpm} \ 381 trm \ 382 ${_twa} \ 383 twe \ 384 tws \ 385 tx \ 386 ${_txp} \ 387 uart \ 388 ubsec \ 389 udf \ 390 udf_iconv \ 391 ufs \ 392 uinput \ 393 unionfs \ 394 usb \ 395 veriexec \ 396 ${_vesa} \ 397 ${_virtio} \ 398 vge \ 399 ${_viawd} \ 400 videomode \ 401 vkbd \ 402 ${_vmm} \ 403 ${_vmware} \ 404 ${_vpo} \ 405 vr \ 406 vte \ 407 vx \ 408 wb \ 409 ${_wbwd} \ 410 ${_wi} \ 411 wlan \ 412 wlan_acl \ 413 wlan_amrr \ 414 wlan_ccmp \ 415 wlan_rssadapt \ 416 wlan_tkip \ 417 wlan_wep \ 418 wlan_xauth \ 419 ${_wpi} \ 420 ${_wpifw} \ 421 ${_x86bios} \ 422 ${_xe} \ 423 xl \ 424 zlib 425 426.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES) 427_autofs= autofs 428.endif 429 430.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 431.if (${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "") && \ 432 ${MACHINE_CPUARCH} != "mips" && \ 433 ${MACHINE_CPUARCH} != "sparc64" 434SUBDIR+= dtrace 435.endif 436SUBDIR+= opensolaris 437.endif 438 439.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 440.if exists(${SRCTOP}/sys/opencrypto) 441_crypto= crypto 442_cryptodev= cryptodev 443_random_fortuna=random_fortuna 444_random_yarrow= random_yarrow 445_random_other= random_other 446.endif 447.endif 448 449.if ${MK_CUSE} != "no" || defined(ALL_MODULES) 450SUBDIR+= cuse 451.endif 452 453.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 454 defined(ALL_MODULES) 455_carp= carp 456_toecore= toecore 457_if_enc= if_enc 458_if_gif= if_gif 459_if_gre= if_gre 460_ipfw_pmod= ipfw_pmod 461.if ${MK_IPSEC_SUPPORT} != "no" 462_ipsec= ipsec 463.endif 464.endif 465 466.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 467 defined(ALL_MODULES) 468_if_stf= if_stf 469.endif 470 471.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 472_if_me= if_me 473_ipdivert= ipdivert 474_ipfw= ipfw 475.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 476_ipfw_nat64= ipfw_nat64 477.endif 478.endif 479 480.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 481_ipfw_nptv6= ipfw_nptv6 482.endif 483 484.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 485_ipfilter= ipfilter 486.endif 487 488.if ${MK_ISCSI} != "no" || defined(ALL_MODULES) 489SUBDIR+= cfiscsi 490SUBDIR+= iscsi 491SUBDIR+= iscsi_initiator 492.endif 493 494.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} != "amd64" || \ 495 ${MACHINE_CPUARCH} == "i386" 496SUBDIR+= linprocfs 497SUBDIR+= linsysfs 498.endif 499 500.if ${MK_NAND} != "no" || defined(ALL_MODULES) 501_nandfs= nandfs 502_nandsim= nandsim 503.endif 504 505.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 506_netgraph= netgraph 507.endif 508 509.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 510 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 511_pf= pf 512_pflog= pflog 513.if ${MK_INET_SUPPORT} != "no" 514_pfsync= pfsync 515.endif 516.endif 517 518.if ${MK_SOURCELESS_UCODE} != "no" 519_bce= bce 520_fxp= fxp 521_ispfw= ispfw 522_sf= sf 523_ti= ti 524_txp= txp 525 526.if ${MACHINE_CPUARCH} != "mips" 527_mwlfw= mwlfw 528_otusfw= otusfw 529_ralfw= ralfw 530_rtwnfw= rtwnfw 531.endif 532.endif 533 534.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 535 ${MACHINE_CPUARCH} != "mips" && \ 536 ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 537 ${MACHINE_CPUARCH} != "riscv" 538_cxgbe= cxgbe 539.endif 540 541.if ${MK_TESTS} != "no" || defined(ALL_MODULES) 542SUBDIR+= tests 543.endif 544 545.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 546SUBDIR+= zfs 547.endif 548 549.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "") 550_hwpmc_mips24k= hwpmc_mips24k 551_hwpmc_mips74k= hwpmc_mips74k 552.endif 553 554.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \ 555 ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \ 556 ${MACHINE_CPUARCH} != "riscv" 557_syscons= syscons 558_vpo= vpo 559.endif 560 561.if ${MACHINE_CPUARCH} != "mips" 562# no BUS_SPACE_UNSPECIFIED 563# No barrier instruction support (specific to this driver) 564_sym= sym 565# intr_disable() is a macro, causes problems 566.if ${MK_SOURCELESS_UCODE} != "no" 567_cxgb= cxgb 568.endif 569.endif 570 571.if ${MACHINE_CPUARCH} == "aarch64" 572_allwinner= allwinner 573_armv8crypto= armv8crypto 574_efirt= efirt 575_em= em 576_rockchip= rockchip 577.endif 578 579.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 580_agp= agp 581_an= an 582_aout= aout 583_bios= bios 584_bktr= bktr 585.if ${MK_SOURCELESS_UCODE} != "no" 586_bxe= bxe 587.endif 588_cardbus= cardbus 589_cbb= cbb 590_cpuctl= cpuctl 591_cpufreq= cpufreq 592_cs= cs 593_dpms= dpms 594_drm= drm 595_drm2= drm2 596_ed= ed 597_em= em 598_ena= ena 599_ep= ep 600_et= et 601_exca= exca 602_fe= fe 603.if ${MK_OFED} != "no" || defined(ALL_MODULES) 604_ibcore= ibcore 605.endif 606_if_ndis= if_ndis 607_io= io 608.if ${MK_OFED} != "no" || defined(ALL_MODULES) 609_ipoib= ipoib 610_iser= iser 611.endif 612_ix= ix 613_ixv= ixv 614_linux= linux 615.if ${MK_SOURCELESS_UCODE} != "no" 616_lio= lio 617.endif 618_nctgpio= nctgpio 619_ndis= ndis 620_ocs_fc= ocs_fc 621_pccard= pccard 622.if ${MK_OFED} != "no" || defined(ALL_MODULES) 623_rdma= rdma 624.endif 625_safe= safe 626_scsi_low= scsi_low 627_speaker= speaker 628_splash= splash 629_sppp= sppp 630_vmware= vmware 631_wbwd= wbwd 632_wi= wi 633_xe= xe 634 635_aac= aac 636_aacraid= aacraid 637_acpi= acpi 638.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 639.if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} > 40201 640_aesni= aesni 641.endif 642.endif 643_amd_ecc_inject=amd_ecc_inject 644_amdsbwd= amdsbwd 645_amdsmn= amdsmn 646_amdtemp= amdtemp 647_arcmsr= arcmsr 648_asmc= asmc 649.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 650_blake2= blake2 651.endif 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.if ${MK_SOURCELESS_UCODE} != "no" 680_ipwfw= ipwfw 681_iwifw= iwifw 682_iwmfw= iwmfw 683_iwnfw= iwnfw 684.endif 685_mlx4= mlx4 686_mlx5= mlx5 687.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 688 defined(ALL_MODULES) 689_mlx4en= mlx4en 690_mlx5en= mlx5en 691.endif 692.if ${MK_OFED} != "no" || defined(ALL_MODULES) 693_mthca= mthca 694_mlx4ib= mlx4ib 695_mlx5ib= mlx5ib 696.endif 697_mly= mly 698_nfe= nfe 699_nvd= nvd 700_nvme= nvme 701_nvram= nvram 702.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 703_padlock= padlock 704_padlock_rng= padlock_rng 705_rdrand_rng= rdrand_rng 706.endif 707_s3= s3 708_sdhci_acpi= sdhci_acpi 709_tpm= tpm 710_twa= twa 711_vesa= vesa 712_viawd= viawd 713_virtio= virtio 714_wpi= wpi 715.if ${MK_SOURCELESS_UCODE} != "no" 716_wpifw= wpifw 717.endif 718_x86bios= x86bios 719.endif 720 721.if ${MACHINE_CPUARCH} == "amd64" 722_ccp= ccp 723_efirt= efirt 724_ioat= ioat 725_ixl= ixl 726_ixlv= ixlv 727_linux64= linux64 728_linux_common= linux_common 729_ntb= ntb 730_pms= pms 731_qlxge= qlxge 732_qlxgb= qlxgb 733.if ${MK_SOURCELESS_UCODE} != "no" 734_qlxgbe= qlxgbe 735_qlnx= qlnx 736.endif 737_sfxge= sfxge 738_sgx= sgx 739_sgx_linux= sgx_linux 740_smartpqi= smartpqi 741 742.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 743_vmm= vmm 744.endif 745.endif 746 747.if ${MACHINE_CPUARCH} == "i386" 748# XXX some of these can move to the general case when de-i386'ed 749# XXX some of these can move now, but are untested on other architectures. 750_3dfx= 3dfx 751_3dfx_linux= 3dfx_linux 752_aic= aic 753_apm= apm 754.if ${MK_SOURCELESS_UCODE} != "no" 755_ce= ce 756.endif 757_coff= coff 758.if ${MK_SOURCELESS_UCODE} != "no" 759_cp= cp 760.endif 761_glxiic= glxiic 762_glxsb= glxsb 763#_ibcs2= ibcs2 764_mse= mse 765_ncr= ncr 766_ncv= ncv 767_nsp= nsp 768_pcfclock= pcfclock 769_pst= pst 770_sbni= sbni 771_stg= stg 772.if ${MK_SOURCELESS_UCODE} != "no" 773_ctau= ctau 774.endif 775_dpt= dpt 776_ex= ex 777.endif 778 779.if ${MACHINE_CPUARCH} == "arm" 780_cfi= cfi 781_cpsw= cpsw 782.endif 783 784.if ${MACHINE_CPUARCH} == "powerpc" 785_agp= agp 786_an= an 787_bm= bm 788_cardbus= cardbus 789_cbb= cbb 790_cfi= cfi 791_cpufreq= cpufreq 792_drm= drm 793_exca= exca 794_ffec= ffec 795_nvd= nvd 796_nvme= nvme 797_pccard= pccard 798_wi= wi 799.endif 800 801.if ${MACHINE_ARCH} == "powerpc64" 802_drm2= drm2 803.endif 804.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc" 805# Don't build powermac_nvram for powerpcspe, it's never supported. 806_nvram= powermac_nvram 807.endif 808 809.if ${MACHINE_CPUARCH} == "sparc64" 810_auxio= auxio 811_em= em 812_epic= epic 813.endif 814 815.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 816 ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386") 817_cloudabi32= cloudabi32 818.endif 819.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 820_cloudabi64= cloudabi64 821.endif 822 823.endif 824 825.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64" 826_bcm283x_clkman= bcm283x_clkman 827_bcm283x_pwm= bcm283x_pwm 828.endif 829 830SUBDIR+=${MODULES_EXTRA} 831 832.for reject in ${WITHOUT_MODULES} 833SUBDIR:= ${SUBDIR:N${reject}} 834.endfor 835 836# Calling kldxref(8) for each module is expensive. 837.if !defined(NO_XREF) 838.MAKEFLAGS+= -DNO_XREF 839afterinstall: .PHONY 840 @if type kldxref >/dev/null 2>&1; then \ 841 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 842 kldxref ${DESTDIR}${KMODDIR}; \ 843 fi 844.endif 845 846.include "${SYSDIR}/conf/config.mk" 847 848SUBDIR:= ${SUBDIR:u:O} 849 850.include <bsd.subdir.mk> 851