Makefile revision 226026
10Sstevel@tonic-gate# $FreeBSD: head/sys/modules/Makefile 226026 2011-10-04 21:40:25Z delphij $ 20Sstevel@tonic-gate 30Sstevel@tonic-gate.include <bsd.own.mk> 40Sstevel@tonic-gate 50Sstevel@tonic-gateSUBDIR= ${_3dfx} \ 60Sstevel@tonic-gate ${_3dfx_linux} \ 70Sstevel@tonic-gate ${_aac} \ 80Sstevel@tonic-gate accf_data \ 90Sstevel@tonic-gate accf_dns \ 100Sstevel@tonic-gate accf_http \ 110Sstevel@tonic-gate ${_acpi} \ 120Sstevel@tonic-gate ae \ 130Sstevel@tonic-gate ${_aesni} \ 140Sstevel@tonic-gate age \ 150Sstevel@tonic-gate ${_agp} \ 160Sstevel@tonic-gate aha \ 170Sstevel@tonic-gate ${_ahb} \ 180Sstevel@tonic-gate ahci \ 190Sstevel@tonic-gate ${_aic} \ 200Sstevel@tonic-gate aic7xxx \ 210Sstevel@tonic-gate aio \ 220Sstevel@tonic-gate alc \ 230Sstevel@tonic-gate ale \ 240Sstevel@tonic-gate alq \ 250Sstevel@tonic-gate ${_amd} \ 260Sstevel@tonic-gate ${_amdsbwd} \ 270Sstevel@tonic-gate ${_amdtemp} \ 280Sstevel@tonic-gate amr \ 290Sstevel@tonic-gate ${_an} \ 300Sstevel@tonic-gate ${_aout} \ 310Sstevel@tonic-gate ${_apm} \ 320Sstevel@tonic-gate ${_arcmsr} \ 330Sstevel@tonic-gate ${_arcnet} \ 340Sstevel@tonic-gate ${_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 tws \ 306 tx \ 307 txp \ 308 uart \ 309 ubsec \ 310 udf \ 311 udf_iconv \ 312 ufs \ 313 unionfs \ 314 usb \ 315 utopia \ 316 ${_vesa} \ 317 vge \ 318 vkbd \ 319 ${_vpo} \ 320 vr \ 321 vte \ 322 vx \ 323 ${_vxge} \ 324 wb \ 325 ${_wi} \ 326 wlan \ 327 wlan_acl \ 328 wlan_amrr \ 329 wlan_ccmp \ 330 wlan_rssadapt \ 331 wlan_tkip \ 332 wlan_wep \ 333 wlan_xauth \ 334 ${_wpi} \ 335 ${_wpifw} \ 336 ${_x86bios} \ 337 ${_xe} \ 338 xfs \ 339 xl \ 340 ${_zfs} \ 341 zlib \ 342 343.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \ 344 ${MACHINE_CPUARCH} != "mips" 345_syscons= syscons 346_vpo= vpo 347.endif 348 349.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 350# no BUS_SPACE_UNSPECIFIED 351# No barrier instruction support (specific to this driver) 352_sym= sym 353# intr_disable() is a macro, causes problems 354_cxgb= cxgb 355.endif 356 357.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 358.if exists(${.CURDIR}/../opencrypto) 359_crypto= crypto 360_cryptodev= cryptodev 361.endif 362.if exists(${.CURDIR}/../crypto) 363_random= random 364.endif 365.endif 366 367.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 368_if_gre= if_gre 369.endif 370 371.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 372 defined(ALL_MODULES) 373_if_carp= if_carp 374.endif 375 376.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 377_ipfilter= ipfilter 378.endif 379 380.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 381_netgraph= netgraph 382.endif 383 384.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 385 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 386_pf= pf 387_pflog= pflog 388.if ${MK_INET_SUPPORT} != "no" 389_pfsync= pfsync 390.endif 391.endif 392 393.if ${MACHINE_CPUARCH} == "i386" 394# XXX some of these can move to the general case when de-i386'ed 395# XXX some of these can move now, but are untested on other architectures. 396_3dfx= 3dfx 397_3dfx_linux= 3dfx_linux 398_agp= agp 399_aic= aic 400_amd= amd 401_an= an 402_aout= aout 403_apm= apm 404_arcnet= arcnet 405_bktr= bktr 406_bxe= bxe 407_cardbus= cardbus 408_cbb= cbb 409_ce= ce 410_coff= coff 411_cp= cp 412_cpuctl= cpuctl 413_cpufreq= cpufreq 414_cs= cs 415.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 416_cyclic= cyclic 417.endif 418_dpms= dpms 419_drm= drm 420.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 421_dtrace= dtrace 422.endif 423_ed= ed 424_elink= elink 425_em= em 426_ep= ep 427_et= et 428_exca= exca 429_ext2fs= ext2fs 430_fe= fe 431_glxiic= glxiic 432_glxsb= glxsb 433_i2c= i2c 434_ibcs2= ibcs2 435_ie= ie 436_if_ndis= if_ndis 437_igb= igb 438_io= io 439_lindev= lindev 440_linprocfs= linprocfs 441_linsysfs= linsysfs 442_linux= linux 443_mse= mse 444.if ${MK_OFED} != "no" || defined(ALL_MODULES) 445_mlx4= mlx4 446_mlx4ib= mlx4ib 447_mlxen= mlxen 448_mthca= mthca 449.endif 450.if ${MK_NCP} != "no" 451_ncp= ncp 452.endif 453_ncv= ncv 454_ndis= ndis 455_nsp= nsp 456.if ${MK_NCP} != "no" 457_nwfs= nwfs 458.endif 459.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 460_opensolaris= opensolaris 461.endif 462_pccard= pccard 463_pcfclock= pcfclock 464_pst= pst 465_rdma= rdma 466_safe= safe 467_sbni= sbni 468_scsi_low= scsi_low 469_smbfs= smbfs 470_sound= sound 471_speaker= speaker 472_splash= splash 473_sppp= sppp 474_stg= stg 475_streams= streams 476_svr4= svr4 477_vxge= vxge 478_wi= wi 479_xe= xe 480.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 481_zfs= zfs 482.endif 483.if ${MACHINE} == "i386" 484_aac= aac 485_acpi= acpi 486.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 487_aesni= aesni 488.endif 489_ahb= ahb 490_amdsbwd= amdsbwd 491_amdtemp= amdtemp 492_arcmsr= arcmsr 493_asmc= asmc 494_asr= asr 495_bios= bios 496_ciss= ciss 497_cm= cm 498_cmx= cmx 499_coretemp= coretemp 500_ctau= ctau 501_dpt= dpt 502_ex= ex 503_hptiop= hptiop 504_hptmv= hptmv 505_hptrr= hptrr 506_ichwd= ichwd 507_ida= ida 508_iir= iir 509_ipmi= ipmi 510_ips= ips 511_ipw= ipw 512_ipwfw= ipwfw 513_iwi= iwi 514_iwifw= iwifw 515_iwn= iwn 516_iwnfw= iwnfw 517_ixgb= ixgb 518_ixgbe= ixgbe 519_mly= mly 520_nfe= nfe 521_nve= nve 522_nvram= nvram 523_nxge= nxge 524_tpm= tpm 525_wpi= wpi 526_wpifw= wpifw 527.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 528_padlock= padlock 529.endif 530_s3= s3 531_twa= twa 532_vesa= vesa 533_x86bios= x86bios 534.elif ${MACHINE} == "pc98" 535_canbepm= canbepm 536_canbus= canbus 537_pmc= pmc 538_snc= snc 539.endif 540.endif 541 542.if ${MACHINE_CPUARCH} == "amd64" 543_aac= aac 544_aout= aout 545_acpi= acpi 546.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 547_aesni= aesni 548.endif 549_agp= agp 550_an= an 551_amdsbwd= amdsbwd 552_amdtemp= amdtemp 553_arcmsr= arcmsr 554_asmc= asmc 555_bxe= bxe 556_cardbus= cardbus 557_cbb= cbb 558_cmx= cmx 559_ciss= ciss 560_coretemp= coretemp 561_cpuctl= cpuctl 562_cpufreq= cpufreq 563.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 564_cyclic= cyclic 565.endif 566_dpms= dpms 567_drm= drm 568.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 569_dtrace= dtrace 570.endif 571_ed= ed 572_et= et 573_em= em 574_exca= exca 575_ext2fs= ext2fs 576_hptiop= hptiop 577_hptmv= hptmv 578_hptrr= hptrr 579_i2c= i2c 580_ichwd= ichwd 581_ida= ida 582_if_ndis= if_ndis 583_igb= igb 584_iir= iir 585_io= io 586_ipmi= ipmi 587_ips= ips 588_ipw= ipw 589_ipwfw= ipwfw 590_iwi= iwi 591_iwifw= iwifw 592_iwn= iwn 593_iwnfw= iwnfw 594_ixgb= ixgb 595_ixgbe= ixgbe 596_lindev= lindev 597_linprocfs= linprocfs 598_linsysfs= linsysfs 599_linux= linux 600_mly= mly 601.if ${MK_OFED} != "no" || defined(ALL_MODULES) 602_mlx4= mlx4 603_mlx4ib= mlx4ib 604_mlxen= mlxen 605_mthca= mthca 606.endif 607_ndis= ndis 608_nfe= nfe 609_nve= nve 610_nvram= nvram 611_nxge= nxge 612.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 613_opensolaris= opensolaris 614.endif 615.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 616_padlock= padlock 617.endif 618_pccard= pccard 619_rdma= rdma 620_s3= s3 621_safe= safe 622_scsi_low= scsi_low 623_smbfs= smbfs 624_sound= sound 625_speaker= speaker 626_splash= splash 627_sppp= sppp 628_tpm= tpm 629_twa= twa 630_vesa= vesa 631_vxge= vxge 632_x86bios= x86bios 633_wi= wi 634_wpi= wpi 635_wpifw= wpifw 636.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 637_zfs= zfs 638.endif 639.endif 640 641.if ${MACHINE_CPUARCH} == "ia64" 642_aac= aac 643_aic= aic 644_an= an 645_arcnet= arcnet 646_asr= asr 647_bktr= bktr 648_cardbus= cardbus 649_cbb= cbb 650_ciss= ciss 651_cm= cm 652_cmx= cmx 653_coff= coff 654_cpufreq= cpufreq 655_dpt= dpt 656_em= em 657_ep= ep 658_et= et 659_exca= exca 660_fe= fe 661_hptiop= hptiop 662_ida= ida 663_igb= igb 664_iir= iir 665_ips= ips 666_mly= mly 667_pccard= pccard 668_scsi_low= scsi_low 669_smbfs= smbfs 670_sound= sound 671_splash= splash 672_sppp= sppp 673_streams= streams 674_tpm= tpm 675_twa= twa 676_wi= wi 677_xe= xe 678.endif 679 680.if ${MACHINE_CPUARCH} == "powerpc" 681_agp= agp 682_an= an 683_bm= bm 684_cpufreq= cpufreq 685_nvram= powermac_nvram 686_smbfs= smbfs 687_sound= sound 688.endif 689 690.if ${MACHINE_ARCH} == "powerpc64" 691.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 692_opensolaris= opensolaris 693.endif 694.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 695_zfs= zfs 696.endif 697.endif 698 699.if ${MACHINE_CPUARCH} == "sparc64" 700_auxio= auxio 701_em= em 702_epic= epic 703_i2c= i2c 704_igb= igb 705.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 706_opensolaris= opensolaris 707.endif 708_smbfs= smbfs 709_sound= sound 710.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 711_zfs= zfs 712.endif 713.endif 714 715.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 716SUBDIR=${MODULES_OVERRIDE} 717.endif 718 719.for reject in ${WITHOUT_MODULES} 720SUBDIR:= ${SUBDIR:N${reject}} 721.endfor 722 723# Calling kldxref(8) for each module is expensive. 724.if !defined(NO_XREF) 725.MAKEFLAGS+= -DNO_XREF 726afterinstall: 727 @if type kldxref >/dev/null 2>&1; then \ 728 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 729 kldxref ${DESTDIR}${KMODDIR}; \ 730 fi 731.endif 732 733.include <bsd.subdir.mk> 734