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