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