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