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