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