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