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