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