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