1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5SUBDIR= ${_3dfx} \ 6 ${_3dfx_linux} \ 7 ${_aac} \ 8 accf_data \ 9 accf_dns \ 10 accf_http \ 11 ${_acpi} \ 12 ae \ 13 ${_aesni} \ 14 age \ 15 ${_agp} \ 16 aha \ 17 ${_ahb} \ 18 ahci \ 19 ${_aic} \ 20 aic7xxx \ 21 aio \ 22 alc \ 23 ale \ 24 alq \ 25 ${_amd} \ 26 ${_amdsbwd} \ 27 ${_amdtemp} \ 28 amr \ 29 ${_an} \ 30 ${_aout} \ 31 ${_apm} \ 32 ${_arcmsr} \ 33 ${_arcnet} \ 34 ${_asmc} \ 35 ${_asr} \ 36 ata \ 37 ath \ 38 ath_pci \ 39 ${_auxio} \ 40 bce \ 41 bfe \ 42 bge \ 43 ${_bxe} \ 44 ${_bios} \ 45 ${_bktr} \ 46 ${_bm} \ 47 bridgestp \ 48 bwi \ 49 bwn \ 50 cam \ 51 ${_canbepm} \ 52 ${_canbus} \ 53 ${_cardbus} \ 54 cas \ 55 ${_cbb} \ 56 cc \ 57 cd9660 \ 58 cd9660_iconv \ 59 ${_ce} \ 60 ${_ciss} \ 61 ${_cm} \ 62 ${_cmx} \ 63 coda \ 64 coda5 \ 65 ${_coff} \ 66 ${_coretemp} \ 67 ${_cp} \ 68 ${_cpuctl} \ 69 ${_cpufreq} \ 70 ${_crypto} \ 71 ${_cryptodev} \ 72 ${_cs} \ 73 ${_ctau} \ 74 ${_cxgb} \ 75 cxgbe \ 76 ${_cyclic} \ 77 dc \ 78 dcons \ 79 dcons_crom \ 80 de \ 81 ${_dpms} \ 82 ${_dpt} \ 83 ${_drm} \ 84 ${_dtrace} \ 85 dummynet \ 86 ${_ed} \ 87 ${_elink} \ 88 ${_em} \ 89 en \ 90 ${_ep} \ 91 ${_epic} \ 92 ${_et} \ 93 ${_ex} \ 94 ${_exca} \ 95 ${_ext2fs} \ 96 fatm \ 97 fdc \ 98 fdescfs \ 99 ${_fe} \ 100 firewire \ 101 firmware \ 102 fxp \ 103 gem \ 104 geom \ 105 ${_glxiic} \ 106 ${_glxsb} \ 107 hatm \ 108 hifn \ 109 hme \ 110 ${_hptiop} \ 111 ${_hptmv} \ 112 ${_hptrr} \ 113 hwpmc \ 114 ${_i2c} \ 115 ${_ibcs2} \ 116 ${_ichwd} \ 117 ${_ida} \ 118 ${_ie} \ 119 if_bridge \ 120 ${_if_carp} \ 121 if_disc \ 122 if_edsc \ 123 if_ef \ 124 if_epair \ 125 if_faith \ 126 if_gif \ 127 ${_if_gre} \ 128 if_lagg \ 129 ${_if_ndis} \ 130 if_stf \ 131 if_tap \ 132 if_tun \ 133 if_vlan \ 134 ${_igb} \ 135 ${_iir} \ 136 ${_io} \ 137 ipdivert \ 138 ${_ipfilter} \ 139 ipfw \ 140 ipfw_nat \ 141 ${_ipmi} \ 142 ip_mroute_mod \ 143 ${_ips} \ 144 ${_ipw} \ 145 ${_ipwfw} \ 146 iscsi \ 147 isp \ 148 ispfw \ 149 ${_iwi} \ 150 ${_iwifw} \ 151 ${_iwn} \ 152 ${_iwnfw} \ 153 ${_ixgb} \ 154 ${_ixgbe} \ 155 jme \ 156 joy \ 157 kbdmux \ 158 kgssapi \ 159 kgssapi_krb5 \ 160 khelp \ 161 krpc \ 162 ksyms \ 163 le \ 164 lge \ 165 libalias \ 166 libiconv \ 167 libmbpool \ 168 libmchain \ 169 ${_lindev} \ 170 ${_linprocfs} \ 171 ${_linsysfs} \ 172 ${_linux} \ 173 lmc \ 174 lpt \ 175 mac_biba \ 176 mac_bsdextended \ 177 mac_ifoff \ 178 mac_lomac \ 179 mac_mls \ 180 mac_none \ 181 mac_partition \ 182 mac_portacl \ 183 mac_seeotheruids \ 184 mac_stub \ 185 mac_test \ 186 malo \ 187 mcd \ 188 md \ 189 mem \ 190 mfi \ 191 mii \ 192 mlx \ 193 ${_mlx4} \ 194 ${_mlx4ib} \ 195 ${_mlxen} \ 196 ${_mly} \ 197 mmc \ 198 mmcsd \ 199 mps \ 200 mpt \ 201 mqueue \ 202 msdosfs \ 203 msdosfs_iconv \ 204 ${_mse} \ 205 msk \ 206 ${_mthca} \ 207 mvs \ 208 mwl \ 209 mwlfw \ 210 mxge \ 211 my \ 212 ${_ncp} \ 213 ${_ncv} \ 214 ${_ndis} \ 215 ${_netgraph} \ 216 ${_nfe} \ 217 nfs_common \ 218 nfscl \ 219 nfsclient \ 220 nfscommon \ 221 nfsd \ 222 nfslock \ 223 nfslockd \ 224 nfsserver \ 225 nfssvc \ 226 nge \ 227 nmdm \ 228 ${_nsp} \ 229 ntfs \ 230 ntfs_iconv \ 231 nullfs \ 232 ${_nve} \ 233 ${_nvram} \ 234 ${_nwfs} \ 235 ${_nxge} \ 236 ${_opensolaris} \ 237 ${_padlock} \ 238 patm \ 239 ${_pccard} \ 240 ${_pcfclock} \ 241 pcn \ 242 ${_pf} \ 243 ${_pflog} \ 244 ${_pfsync} \ 245 plip \ 246 ${_pmc} \ 247 portalfs \ 248 ppbus \ 249 ppc \ 250 ppi \ 251 pps \ 252 procfs \ 253 pseudofs \ 254 ${_pst} \ 255 pty \ 256 puc \ 257 ral \ 258 ralfw \ 259 ${_random} \ 260 rc4 \ 261 ${_rdma} \ 262 re \ 263 reiserfs \ 264 rl \ 265 runfw \ 266 ${_s3} \ 267 ${_safe} \ 268 ${_sbni} \ 269 scc \ 270 scd \ 271 ${_scsi_low} \ 272 sdhci \ 273 sem \ 274 send \ 275 sf \ 276 sge \ 277 siba_bwn \ 278 siftr \ 279 siis \ 280 sis \ 281 sk \ 282 ${_smbfs} \ 283 sn \ 284 ${_snc} \ 285 snp \ 286 ${_sound} \ 287 ${_speaker} \ 288 ${_splash} \ 289 ${_sppp} \ 290 ste \ 291 ${_stg} \ 292 stge \ 293 ${_streams} \ 294 ${_svr4} \ 295 ${_sym} \ 296 ${_syscons} \ 297 sysvipc \ 298 ti \ 299 tl \ 300 tmpfs \ 301 ${_tpm} \ 302 trm \ 303 ${_twa} \ 304 twe \ 305 tx \ 306 txp \ 307 uart \ 308 ubsec \ 309 udf \ 310 udf_iconv \ 311 ufs \ 312 unionfs \ 313 usb \ 314 utopia \ 315 ${_vesa} \ 316 vge \ 317 vkbd \ 318 ${_vpo} \ 319 vr \ 320 vte \ 321 vx \ 322 ${_vxge} \ 323 wb \ 324 ${_wi} \ 325 wlan \ 326 wlan_acl \ 327 wlan_amrr \ 328 wlan_ccmp \ 329 wlan_rssadapt \ 330 wlan_tkip \ 331 wlan_wep \ 332 wlan_xauth \ 333 ${_wpi} \ 334 ${_wpifw} \ 335 ${_x86bios} \ 336 ${_xe} \ 337 xfs \ 338 xl \ 339 ${_zfs} \ 340 zlib \ 341 342.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \ 343 ${MACHINE_CPUARCH} != "mips" 344_syscons= syscons 345_vpo= vpo 346.endif 347 348.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 349# no BUS_SPACE_UNSPECIFIED 350# No barrier instruction support (specific to this driver) 351_sym= sym 352# intr_disable() is a macro, causes problems 353_cxgb= cxgb 354.endif 355 356.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 357.if exists(${.CURDIR}/../opencrypto) 358_crypto= crypto 359_cryptodev= cryptodev 360.endif 361.if exists(${.CURDIR}/../crypto) 362_random= random 363.endif 364.endif 365 366.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 367_if_gre= if_gre 368.endif 369 370.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 371 defined(ALL_MODULES) 372_if_carp= if_carp 373.endif 374 375.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 376_ipfilter= ipfilter 377.endif 378 379.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 380_netgraph= netgraph 381.endif 382 383.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 384 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 385_pf= pf 386_pflog= pflog 387.if ${MK_INET_SUPPORT} != "no" 388_pfsync= pfsync 389.endif 390.endif 391 392.if ${MACHINE_CPUARCH} == "i386" 393# XXX some of these can move to the general case when de-i386'ed 394# XXX some of these can move now, but are untested on other architectures. 395_3dfx= 3dfx 396_3dfx_linux= 3dfx_linux 397_agp= agp 398_aic= aic 399_amd= amd 400_an= an 401_aout= aout 402_apm= apm 403_arcnet= arcnet 404_bktr= bktr 405_bxe= bxe 406_cardbus= cardbus 407_cbb= cbb 408_ce= ce 409_coff= coff 410_cp= cp 411_cpuctl= cpuctl 412_cpufreq= cpufreq 413_cs= cs 414.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 415_cyclic= cyclic 416.endif 417_dpms= dpms 418_drm= drm 419.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 420_dtrace= dtrace 421.endif 422_ed= ed 423_elink= elink 424_em= em 425_ep= ep 426_et= et 427_exca= exca 428_ext2fs= ext2fs 429_fe= fe 430_glxiic= glxiic 431_glxsb= glxsb 432_i2c= i2c 433_ibcs2= ibcs2 434_ie= ie 435_if_ndis= if_ndis 436_igb= igb 437_io= io 438_lindev= lindev 439_linprocfs= linprocfs 440_linsysfs= linsysfs 441_linux= linux 442_mse= mse 443.if ${MK_OFED} != "no" || defined(ALL_MODULES) 444_mlx4= mlx4 445_mlx4ib= mlx4ib 446_mlxen= mlxen 447_mthca= mthca 448.endif 449.if ${MK_NCP} != "no" 450_ncp= ncp 451.endif 452_ncv= ncv 453_ndis= ndis 454_nsp= nsp 455.if ${MK_NCP} != "no" 456_nwfs= nwfs 457.endif 458.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 459_opensolaris= opensolaris 460.endif 461_pccard= pccard 462_pcfclock= pcfclock 463_pst= pst 464_rdma= rdma 465_safe= safe 466_sbni= sbni 467_scsi_low= scsi_low 468_smbfs= smbfs 469_sound= sound 470_speaker= speaker 471_splash= splash 472_sppp= sppp 473_stg= stg 474_streams= streams 475_svr4= svr4 476_vxge= vxge 477_wi= wi 478_xe= xe 479.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 480_zfs= zfs 481.endif 482.if ${MACHINE} == "i386" 483_aac= aac 484_acpi= acpi 485.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 486_aesni= aesni 487.endif 488_ahb= ahb 489_amdsbwd= amdsbwd 490_amdtemp= amdtemp 491_arcmsr= arcmsr 492_asmc= asmc 493_asr= asr 494_bios= bios 495_ciss= ciss 496_cm= cm 497_cmx= cmx 498_coretemp= coretemp 499_ctau= ctau 500_dpt= dpt 501_ex= ex 502_hptiop= hptiop 503_hptmv= hptmv 504_hptrr= hptrr 505_ichwd= ichwd 506_ida= ida 507_iir= iir 508_ipmi= ipmi 509_ips= ips 510_ipw= ipw 511_ipwfw= ipwfw 512_iwi= iwi 513_iwifw= iwifw 514_iwn= iwn 515_iwnfw= iwnfw 516_ixgb= ixgb 517_ixgbe= ixgbe 518_mly= mly 519_nfe= nfe 520_nve= nve 521_nvram= nvram 522_nxge= nxge 523_tpm= tpm 524_wpi= wpi 525_wpifw= wpifw 526.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 527_padlock= padlock 528.endif 529_s3= s3 530_twa= twa 531_vesa= vesa 532_x86bios= x86bios 533.elif ${MACHINE} == "pc98" 534_canbepm= canbepm 535_canbus= canbus 536_pmc= pmc 537_snc= snc 538.endif 539.endif 540 541.if ${MACHINE_CPUARCH} == "amd64" 542_aac= aac 543_aout= aout 544_acpi= acpi 545.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 546_aesni= aesni 547.endif 548_agp= agp 549_an= an 550_amdsbwd= amdsbwd 551_amdtemp= amdtemp 552_arcmsr= arcmsr 553_asmc= asmc 554_bxe= bxe 555_cardbus= cardbus 556_cbb= cbb 557_cmx= cmx 558_ciss= ciss 559_coretemp= coretemp 560_cpuctl= cpuctl 561_cpufreq= cpufreq 562.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 563_cyclic= cyclic 564.endif 565_dpms= dpms 566_drm= drm 567.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 568_dtrace= dtrace 569.endif 570_ed= ed 571_et= et 572_em= em 573_exca= exca 574_ext2fs= ext2fs 575_hptiop= hptiop 576_hptmv= hptmv 577_hptrr= hptrr 578_i2c= i2c 579_ichwd= ichwd 580_ida= ida 581_if_ndis= if_ndis 582_igb= igb 583_iir= iir 584_io= io 585_ipmi= ipmi 586_ips= ips 587_ipw= ipw 588_ipwfw= ipwfw 589_iwi= iwi 590_iwifw= iwifw 591_iwn= iwn 592_iwnfw= iwnfw 593_ixgb= ixgb 594_ixgbe= ixgbe 595_lindev= lindev 596_linprocfs= linprocfs 597_linsysfs= linsysfs 598_linux= linux 599_mly= mly 600.if ${MK_OFED} != "no" || defined(ALL_MODULES) 601_mlx4= mlx4 602_mlx4ib= mlx4ib 603_mlxen= mlxen 604_mthca= mthca 605.endif 606_ndis= ndis 607_nfe= nfe 608_nve= nve 609_nvram= nvram 610_nxge= nxge 611.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 612_opensolaris= opensolaris 613.endif 614.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 615_padlock= padlock 616.endif 617_pccard= pccard 618_rdma= rdma 619_s3= s3 620_safe= safe 621_scsi_low= scsi_low 622_smbfs= smbfs 623_sound= sound 624_speaker= speaker 625_splash= splash 626_sppp= sppp 627_tpm= tpm 628_twa= twa 629_vesa= vesa 630_vxge= vxge 631_x86bios= x86bios 632_wi= wi 633_wpi= wpi 634_wpifw= wpifw 635.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 636_zfs= zfs 637.endif 638.endif 639 640.if ${MACHINE_CPUARCH} == "ia64" 641_aac= aac 642_aic= aic 643_an= an 644_arcnet= arcnet 645_asr= asr 646_bktr= bktr 647_cardbus= cardbus 648_cbb= cbb 649_ciss= ciss 650_cm= cm 651_cmx= cmx 652_coff= coff 653_cpufreq= cpufreq 654_dpt= dpt 655_em= em 656_ep= ep 657_et= et 658_exca= exca 659_fe= fe 660_hptiop= hptiop 661_ida= ida 662_igb= igb 663_iir= iir 664_ips= ips 665_mly= mly 666_pccard= pccard 667_scsi_low= scsi_low 668_smbfs= smbfs 669_sound= sound 670_splash= splash 671_sppp= sppp 672_streams= streams 673_tpm= tpm 674_twa= twa 675_wi= wi 676_xe= xe 677.endif 678 679.if ${MACHINE_CPUARCH} == "powerpc" 680_agp= agp 681_an= an 682_bm= bm 683_cpufreq= cpufreq 684_nvram= powermac_nvram 685_smbfs= smbfs 686_sound= sound 687.endif 688 689.if ${MACHINE_ARCH} == "powerpc64" 690.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 691_opensolaris= opensolaris 692.endif 693.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 694_zfs= zfs 695.endif 696.endif 697 698.if ${MACHINE_CPUARCH} == "sparc64" 699_auxio= auxio 700_em= em 701_epic= epic 702_i2c= i2c 703_igb= igb 704.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 705_opensolaris= opensolaris 706.endif 707_smbfs= smbfs 708_sound= sound 709.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 710_zfs= zfs 711.endif 712.endif 713 714.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 715SUBDIR=${MODULES_OVERRIDE} 716.endif 717 718.for reject in ${WITHOUT_MODULES} 719SUBDIR:= ${SUBDIR:N${reject}} 720.endfor 721 722# Calling kldxref(8) for each module is expensive. 723.if !defined(NO_XREF) 724.MAKEFLAGS+= -DNO_XREF 725afterinstall: 726 @if type kldxref >/dev/null 2>&1; then \ 727 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 728 kldxref ${DESTDIR}${KMODDIR}; \ 729 fi 730.endif 731 732.include <bsd.subdir.mk> 733