Makefile revision 176829
1# $FreeBSD: head/sys/modules/Makefile 176829 2008-03-05 14:13:30Z rink $ 2 3.include <bsd.own.mk> 4 5SUBDIR= ${_3dfx} \ 6 ${_3dfx_linux} \ 7 ${_aac} \ 8 accf_data \ 9 accf_http \ 10 ${_acpi} \ 11 ${_agp} \ 12 aha \ 13 ${_ahb} \ 14 ${_aic} \ 15 aic7xxx \ 16 aio \ 17 ${_amd} \ 18 amr \ 19 ${_an} \ 20 ${_aout} \ 21 ${_apm} \ 22 ${_ar} \ 23 ${_arcmsr} \ 24 ${_arcnet} \ 25 ${_arl} \ 26 ${_asmc} \ 27 ${_asr} \ 28 ata \ 29 ${_ath} \ 30 ${_ath_hal} \ 31 ${_ath_rate_amrr} \ 32 ${_ath_rate_onoe} \ 33 ${_ath_rate_sample} \ 34 aue \ 35 ${_auxio} \ 36 ${_awi} \ 37 axe \ 38 bce \ 39 bfe \ 40 bge \ 41 ${_bios} \ 42 ${_bktr} \ 43 bridgestp \ 44 cam \ 45 ${_canbepm} \ 46 ${_canbus} \ 47 ${_cardbus} \ 48 ${_cbb} \ 49 cd9660 \ 50 cd9660_iconv \ 51 cdce \ 52 ${_ce} \ 53 ${_ciss} \ 54 ${_cm} \ 55 coda \ 56 coda5 \ 57 ${_coff} \ 58 ${_coretemp} \ 59 ${_cp} \ 60 ${_cpufreq} \ 61 ${_crypto} \ 62 ${_cryptodev} \ 63 ${_cs} \ 64 ${_ctau} \ 65 cue \ 66 ${_cx} \ 67 cxgb \ 68 dc \ 69 dcons \ 70 dcons_crom \ 71 de \ 72 ${_digi} \ 73 ${_dpt} \ 74 ${_drm} \ 75 dummynet \ 76 ${_ed} \ 77 ${_elink} \ 78 ${_em} \ 79 en \ 80 ${_ep} \ 81 ${_ex} \ 82 ${_exca} \ 83 ${_ext2fs} \ 84 fatm \ 85 fdc \ 86 fdescfs \ 87 ${_fe} \ 88 firewire \ 89 firmware \ 90 fxp \ 91 gem \ 92 geom \ 93 ${_harp} \ 94 hatm \ 95 ${_hfa} \ 96 hifn \ 97 hme \ 98 ${_hptiop} \ 99 ${_hptmv} \ 100 ${_hptrr} \ 101 hwpmc \ 102 ${_i2c} \ 103 ${_ibcs2} \ 104 ${_ichwd} \ 105 ${_ida} \ 106 ${_idt} \ 107 ${_ie} \ 108 if_bridge \ 109 if_disc \ 110 if_edsc \ 111 if_ef \ 112 if_faith \ 113 if_gif \ 114 if_gre \ 115 if_lagg \ 116 ${_if_ndis} \ 117 if_ppp \ 118 if_sl \ 119 if_stf \ 120 if_tap \ 121 if_tun \ 122 if_vlan \ 123 ${_igb} \ 124 ${_iir} \ 125 ${_io} \ 126 ipdivert \ 127 ${_ipfilter} \ 128 ipfw \ 129 ipfw_nat \ 130 ${_ipmi} \ 131 ip_mroute_mod \ 132 ${_ips} \ 133 ${_ipw} \ 134 ${_ipwfw} \ 135 iscsi \ 136 isp \ 137 ispfw \ 138 ${_iwi} \ 139 ${_iwifw} \ 140 ${_ixgb} \ 141 joy \ 142 kbdmux \ 143 kue \ 144 le \ 145 lge \ 146 libalias \ 147 libiconv \ 148 libmbpool \ 149 libmchain \ 150 ${_linprocfs} \ 151 ${_linsysfs} \ 152 ${_linux} \ 153 lmc \ 154 lpt \ 155 mac_biba \ 156 mac_bsdextended \ 157 mac_ifoff \ 158 mac_lomac \ 159 mac_mls \ 160 mac_none \ 161 mac_partition \ 162 mac_portacl \ 163 mac_seeotheruids \ 164 mac_stub \ 165 mac_test \ 166 mcd \ 167 md \ 168 mem \ 169 mfi \ 170 mii \ 171 mlx \ 172 ${_mly} \ 173 mpt \ 174 mqueue \ 175 msdosfs \ 176 msdosfs_iconv \ 177 ${_mse} \ 178 msk \ 179 mxge \ 180 my \ 181 ${_ncp} \ 182 ${_ncv} \ 183 ${_ndis} \ 184 netgraph \ 185 ${_nfe} \ 186 nfsclient \ 187 nfsserver \ 188 nge \ 189 nmdm \ 190 ${_nsp} \ 191 ntfs \ 192 ntfs_iconv \ 193 nullfs \ 194 ${_nve} \ 195 ${_nvram} \ 196 ${_nwfs} \ 197 ${_nxge} \ 198 ${_oltr} \ 199 ${_padlock} \ 200 patm \ 201 ${_pccard} \ 202 ${_pcfclock} \ 203 pcn \ 204 ${_pecoff} \ 205 ${_pf} \ 206 ${_pflog} \ 207 plip \ 208 ${_pmc} \ 209 portalfs \ 210 ppbus \ 211 ppc \ 212 ppi \ 213 pps \ 214 procfs \ 215 pseudofs \ 216 ${_pst} \ 217 puc \ 218 ral \ 219 ${_random} \ 220 ${_ray} \ 221 rc \ 222 rc4 \ 223 re \ 224 reiserfs \ 225 rl \ 226 rp \ 227 rue \ 228 rum \ 229 ${_s3} \ 230 ${_safe} \ 231 ${_sbni} \ 232 sbsh \ 233 scc \ 234 scd \ 235 ${_scsi_low} \ 236 sem \ 237 sf \ 238 ${_sio} \ 239 sis \ 240 sk \ 241 ${_smbfs} \ 242 sn \ 243 ${_snc} \ 244 snp \ 245 ${_sound} \ 246 ${_speaker} \ 247 ${_splash} \ 248 ${_sppp} \ 249 ${_sr} \ 250 ste \ 251 ${_stg} \ 252 stge \ 253 ${_streams} \ 254 sym \ 255 ${_syscons} \ 256 sysvipc \ 257 ti \ 258 tl \ 259 ${_tmpfs} \ 260 trm \ 261 ${_twa} \ 262 twe \ 263 tx \ 264 txp \ 265 uark \ 266 uart \ 267 ubsa \ 268 ubsec \ 269 ubser \ 270 ucom \ 271 ucycom \ 272 udav \ 273 udbp \ 274 udf \ 275 udf_iconv \ 276 ufm \ 277 ${_ufs} \ 278 ufoma \ 279 uftdi \ 280 ugen \ 281 uhid \ 282 ukbd \ 283 ulpt \ 284 umass \ 285 umct \ 286 umodem \ 287 ums \ 288 unionfs \ 289 uplcom \ 290 ural \ 291 urio \ 292 usb \ 293 uscanner \ 294 uslcom \ 295 utopia \ 296 uvisor \ 297 uvscom \ 298 ${_vesa} \ 299 vge \ 300 vkbd \ 301 ${_vpo} \ 302 vr \ 303 vx \ 304 wb \ 305 ${_wi} \ 306 wlan \ 307 wlan_acl \ 308 wlan_amrr \ 309 wlan_ccmp \ 310 wlan_scan_ap \ 311 wlan_scan_sta \ 312 wlan_tkip \ 313 wlan_wep \ 314 wlan_xauth \ 315 ${_wpi} \ 316 ${_wpifw} \ 317 ${_xe} \ 318 xfs \ 319 xl \ 320 ${_zfs} \ 321 zlib \ 322 zyd 323 324.if ${MACHINE_ARCH} != "powerpc" 325_syscons= syscons 326_vpo= vpo 327.endif 328 329.if defined(ALL_MODULES) 330_ufs= ufs 331.endif 332 333# Disabled in 7.0 as netatm is not MPSAFE. 334#if ${MK_ATM} != "no" 335#_harp= harp 336#.endif 337 338.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 339.if exists(${.CURDIR}/../opencrypto) 340_crypto= crypto 341_cryptodev= cryptodev 342.endif 343.if exists(${.CURDIR}/../crypto) 344_random= random 345.endif 346.endif 347 348.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 349_ipfilter= ipfilter 350.endif 351 352.if ${MK_PF} != "no" || defined(ALL_MODULES) 353_pf= pf 354_pflog= pflog 355.endif 356 357.if ${MACHINE_ARCH} == "i386" 358# XXX some of these can move to the general case when de-i386'ed 359# XXX some of these can move now, but are untested on other architectures. 360_3dfx= 3dfx 361_3dfx_linux= 3dfx_linux 362_agp= agp 363_aic= aic 364_amd= amd 365_an= an 366_aout= aout 367_apm= apm 368_ar= ar 369_arcnet= arcnet 370_ath= ath 371_ath_hal= ath_hal 372_ath_rate_amrr= ath_rate_amrr 373_ath_rate_onoe= ath_rate_onoe 374_ath_rate_sample=ath_rate_sample 375_awi= awi 376_bktr= bktr 377_cardbus= cardbus 378_cbb= cbb 379_ce= ce 380_coff= coff 381_cp= cp 382_cpufreq= cpufreq 383_cs= cs 384_digi= digi 385_drm= drm 386_ed= ed 387_elink= elink 388_em= em 389_ep= ep 390_exca= exca 391_ext2fs= ext2fs 392_fe= fe 393# Disabled due to non-MPSAFEty in 7.0 394#_hfa= hfa 395_i2c= i2c 396_ibcs2= ibcs2 397_ie= ie 398_if_ndis= if_ndis 399_igb= igb 400_io= io 401_linprocfs= linprocfs 402_linsysfs= linsysfs 403_linux= linux 404_mse= mse 405.if ${MK_NCP} != "no" 406_ncp= ncp 407.endif 408_ncv= ncv 409_ndis= ndis 410_nsp= nsp 411.if ${MK_NCP} != "no" 412_nwfs= nwfs 413.endif 414_oltr= oltr 415_pccard= pccard 416_pcfclock= pcfclock 417_pecoff= pecoff 418_pst= pst 419_ray= ray 420_safe= safe 421_sbni= sbni 422_scsi_low= scsi_low 423_sio= sio 424_smbfs= smbfs 425_sound= sound 426_speaker= speaker 427_splash= splash 428_sppp= sppp 429_sr= sr 430_stg= stg 431_streams= streams 432_tmpfs= tmpfs 433_wi= wi 434_xe= xe 435.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 436_zfs= zfs 437.endif 438.if ${MACHINE} == "i386" 439_aac= aac 440_acpi= acpi 441_ahb= ahb 442_arcmsr= arcmsr 443_arl= arl 444_asmc= asmc 445_asr= asr 446_bios= bios 447_ciss= ciss 448_cm= cm 449_coretemp= coretemp 450_ctau= ctau 451_cx= cx 452_dpt= dpt 453_ex= ex 454_hptiop= hptiop 455_hptmv= hptmv 456_hptrr= hptrr 457_ichwd= ichwd 458_ida= ida 459# Disabled due to non-MPSAFEty in 7.0 460#_idt= idt 461_iir= iir 462_ipmi= ipmi 463_ips= ips 464_ipw= ipw 465_ipwfw= ipwfw 466_iwi= iwi 467_iwifw= iwifw 468_ixgb= ixgb 469_mly= mly 470_nfe= nfe 471_nve= nve 472_nvram= nvram 473_nxge= nxge 474_wpi= wpi 475_wpifw= wpifw 476.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 477.if exists(${.CURDIR}/../crypto/via) 478_padlock= padlock 479.endif 480.endif 481_s3= s3 482_twa= twa 483_vesa= vesa 484.elif ${MACHINE} == "pc98" 485_canbepm= canbepm 486_canbus= canbus 487_pmc= pmc 488_snc= snc 489.endif 490.endif 491 492.if ${MACHINE_ARCH} == "amd64" 493_aac= aac 494_acpi= acpi 495_agp= agp 496_an= an 497_arcmsr= arcmsr 498_asmc= asmc 499_ath= ath 500_ath_hal= ath_hal 501_ath_rate_amrr= ath_rate_amrr 502_ath_rate_onoe= ath_rate_onoe 503_ath_rate_sample=ath_rate_sample 504_cardbus= cardbus 505_cbb= cbb 506_ciss= ciss 507_coretemp= coretemp 508_cpufreq= cpufreq 509_digi= digi 510_drm= drm 511_ed= ed 512_em= em 513_exca= exca 514_ext2fs= ext2fs 515_hptiop= hptiop 516_hptmv= hptmv 517_hptrr= hptrr 518_i2c= i2c 519_ichwd= ichwd 520_ida= ida 521_if_ndis= if_ndis 522_igb= igb 523_iir= iir 524_io= io 525_ipmi= ipmi 526_ips= ips 527_ipw= ipw 528_ipwfw= ipwfw 529_ixgb= ixgb 530_linprocfs= linprocfs 531_linsysfs= linsysfs 532_linux= linux 533_mly= mly 534_ndis= ndis 535_nfe= nfe 536_nve= nve 537_nvram= nvram 538_nxge= nxge 539_pccard= pccard 540_safe= safe 541_scsi_low= scsi_low 542_smbfs= smbfs 543_sound= sound 544_speaker= speaker 545_sppp= sppp 546_tmpfs= tmpfs 547_twa= twa 548_wi= wi 549_wpi= wpi 550_wpifw= wpifw 551.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 552_zfs= zfs 553.endif 554.endif 555 556.if ${MACHINE_ARCH} == "ia64" 557# Modules not enabled on ia64 (as compared to i386) include: 558# aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv 559# nsp oltr pecoff s3 sbni stg vesa 560# acpi is not enabled because it is broken as a module on ia64 561_aic= aic 562#_ar= ar not 64-bit clean 563_an= an 564_arcnet= arcnet 565_asr= asr 566_bktr= bktr 567_cardbus= cardbus 568_cbb= cbb 569_ciss= ciss 570_cm= cm 571_coff= coff 572_cpufreq= cpufreq 573_em= em 574_ep= ep 575_exca= exca 576_fe= fe 577_hfa= hfa 578_igb= igb 579_iir= iir 580_mly= mly 581_pccard= pccard 582_scsi_low= scsi_low 583_smbfs= smbfs 584_sound= sound 585_splash= splash 586_sppp= sppp 587#_sr= sr not 64bit clean 588_streams= streams 589_wi= wi 590_xe= xe 591.endif 592 593.if ${MACHINE_ARCH} == "powerpc" 594_an= an 595_ath= ath 596_ath_hal= ath_hal 597_ath_rate_amrr= ath_rate_amrr 598_ath_rate_onoe= ath_rate_onoe 599_ath_rate_sample=ath_rate_sample 600_nvram= powermac_nvram 601_smbfs= smbfs 602.endif 603 604.if ${MACHINE_ARCH} == "sparc64" 605_ath= ath 606_ath_hal= ath_hal 607_ath_rate_amrr= ath_rate_amrr 608_ath_rate_onoe= ath_rate_onoe 609_ath_rate_sample=ath_rate_sample 610_auxio= auxio 611_em= em 612_i2c= i2c 613_igb= igb 614_sound= sound 615.endif 616 617.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 618SUBDIR=${MODULES_OVERRIDE} 619.endif 620 621.for reject in ${WITHOUT_MODULES} 622SUBDIR:= ${SUBDIR:N${reject}} 623.endfor 624 625# Calling kldxref(8) for each module is expensive. 626.if !defined(NO_XREF) 627.MAKEFLAGS+= -DNO_XREF 628afterinstall: 629 @if type kldxref >/dev/null 2>&1; then \ 630 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 631 kldxref ${DESTDIR}${KMODDIR}; \ 632 fi 633.endif 634 635.include <bsd.subdir.mk> 636