Makefile revision 219820
1# $FreeBSD: head/sys/modules/Makefile 219820 2011-03-21 09:58:24Z jeff $ 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_NCP} != "no" 422_ncp= ncp 423.endif 424_ncv= ncv 425_ndis= ndis 426_nsp= nsp 427.if ${MK_NCP} != "no" 428_nwfs= nwfs 429.endif 430.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 431_opensolaris= opensolaris 432.endif 433_pccard= pccard 434_pcfclock= pcfclock 435_pst= pst 436_rdma= rdma 437_safe= safe 438_sbni= sbni 439_scsi_low= scsi_low 440_smbfs= smbfs 441_sound= sound 442_speaker= speaker 443_splash= splash 444_sppp= sppp 445_stg= stg 446_streams= streams 447_svr4= svr4 448_wi= wi 449_xe= xe 450.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 451_zfs= zfs 452.endif 453.if ${MACHINE} == "i386" 454_aac= aac 455_acpi= acpi 456.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 457_aesni= aesni 458.endif 459_ahb= ahb 460_amdsbwd= amdsbwd 461_amdtemp= amdtemp 462_arcmsr= arcmsr 463_asmc= asmc 464_asr= asr 465_bios= bios 466_ciss= ciss 467_cm= cm 468_cmx= cmx 469_coretemp= coretemp 470_ctau= ctau 471_dpt= dpt 472_ex= ex 473_hptiop= hptiop 474_hptmv= hptmv 475_hptrr= hptrr 476_ichwd= ichwd 477_ida= ida 478_iir= iir 479_ipmi= ipmi 480_ips= ips 481_ipw= ipw 482_ipwfw= ipwfw 483_iwi= iwi 484_iwifw= iwifw 485_iwn= iwn 486_iwnfw= iwnfw 487_ixgb= ixgb 488_ixgbe= ixgbe 489_mly= mly 490_nfe= nfe 491_nve= nve 492_nvram= nvram 493_nxge= nxge 494_tpm= tpm 495_wpi= wpi 496_wpifw= wpifw 497.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 498_padlock= padlock 499.endif 500_s3= s3 501_twa= twa 502_vesa= vesa 503_x86bios= x86bios 504.elif ${MACHINE} == "pc98" 505_canbepm= canbepm 506_canbus= canbus 507_pmc= pmc 508_snc= snc 509.endif 510.endif 511 512.if ${MACHINE_CPUARCH} == "amd64" 513_aac= aac 514_acpi= acpi 515.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 516_aesni= aesni 517.endif 518_agp= agp 519_an= an 520_amdsbwd= amdsbwd 521_amdtemp= amdtemp 522_arcmsr= arcmsr 523_asmc= asmc 524_cardbus= cardbus 525_cbb= cbb 526_cmx= cmx 527_ciss= ciss 528_coretemp= coretemp 529_cpuctl= cpuctl 530_cpufreq= cpufreq 531.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 532_cyclic= cyclic 533.endif 534_dpms= dpms 535_drm= drm 536.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 537_dtrace= dtrace 538.endif 539_ed= ed 540_et= et 541_em= em 542_exca= exca 543_ext2fs= ext2fs 544_hptiop= hptiop 545_hptmv= hptmv 546_hptrr= hptrr 547_i2c= i2c 548_ichwd= ichwd 549_ida= ida 550_if_ndis= if_ndis 551_igb= igb 552_iir= iir 553_io= io 554_ipmi= ipmi 555_ips= ips 556_ipw= ipw 557_ipwfw= ipwfw 558_iwi= iwi 559_iwifw= iwifw 560_iwn= iwn 561_iwnfw= iwnfw 562_ixgb= ixgb 563_ixgbe= ixgbe 564_lindev= lindev 565_linprocfs= linprocfs 566_linsysfs= linsysfs 567_linux= linux 568_mly= mly 569_ndis= ndis 570_nfe= nfe 571_nve= nve 572_nvram= nvram 573_nxge= nxge 574.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 575_opensolaris= opensolaris 576.endif 577.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 578_padlock= padlock 579.endif 580_pccard= pccard 581_rdma= rdma 582_s3= s3 583_safe= safe 584_scsi_low= scsi_low 585_smbfs= smbfs 586_sound= sound 587_speaker= speaker 588_splash= splash 589_sppp= sppp 590_tpm= tpm 591_twa= twa 592_vesa= vesa 593_x86bios= x86bios 594_wi= wi 595_wpi= wpi 596_wpifw= wpifw 597.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 598_zfs= zfs 599.endif 600.endif 601 602.if ${MACHINE_CPUARCH} == "ia64" 603_aac= aac 604_aic= aic 605_an= an 606_arcnet= arcnet 607_asr= asr 608_bktr= bktr 609_cardbus= cardbus 610_cbb= cbb 611_ciss= ciss 612_cm= cm 613_cmx= cmx 614_coff= coff 615_cpufreq= cpufreq 616_dpt= dpt 617_em= em 618_ep= ep 619_et= et 620_exca= exca 621_fe= fe 622_hptiop= hptiop 623_ida= ida 624_igb= igb 625_iir= iir 626_ips= ips 627_mly= mly 628_pccard= pccard 629_scsi_low= scsi_low 630_smbfs= smbfs 631_sound= sound 632_splash= splash 633_sppp= sppp 634_streams= streams 635_tpm= tpm 636_twa= twa 637_wi= wi 638_xe= xe 639.endif 640 641.if ${MACHINE_CPUARCH} == "powerpc" 642_agp= agp 643_an= an 644_bm= bm 645_cpufreq= cpufreq 646_nvram= powermac_nvram 647_smbfs= smbfs 648_sound= sound 649.endif 650 651.if ${MACHINE_ARCH} == "powerpc64" 652.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 653_opensolaris= opensolaris 654.endif 655.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 656_zfs= zfs 657.endif 658.endif 659 660.if ${MACHINE_CPUARCH} == "sparc64" 661_auxio= auxio 662_em= em 663_epic= epic 664_i2c= i2c 665_igb= igb 666.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 667_opensolaris= opensolaris 668.endif 669_smbfs= smbfs 670_sound= sound 671.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 672_zfs= zfs 673.endif 674.endif 675 676.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 677SUBDIR=${MODULES_OVERRIDE} 678.endif 679 680.for reject in ${WITHOUT_MODULES} 681SUBDIR:= ${SUBDIR:N${reject}} 682.endfor 683 684# Calling kldxref(8) for each module is expensive. 685.if !defined(NO_XREF) 686.MAKEFLAGS+= -DNO_XREF 687afterinstall: 688 @if type kldxref >/dev/null 2>&1; then \ 689 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 690 kldxref ${DESTDIR}${KMODDIR}; \ 691 fi 692.endif 693 694.include <bsd.subdir.mk> 695