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