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