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