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 ${_nwfs} \ 192 ${_nxge} \ 193 ${_oltr} \ 194 ${_padlock} \ 195 patm \ 196 ${_pccard} \ 197 ${_pcfclock} \ 198 pcn \ 199 ${_pecoff} \ 200 ${_pf} \ 201 ${_pflog} \ 202 plip \ 203 ${_pmc} \ 204 portalfs \ 205 ${_powermac_nvram} \ 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_coretemp= coretemp 375_cp= cp 376_cpufreq= cpufreq 377_cs= cs 378_digi= digi 379_drm= drm 380_ed= ed 381_elink= elink 382_em= em 383_ep= ep 384_exca= exca 385_ext2fs= ext2fs 386_fe= fe 387# Disabled due to non-MPSAFEty in 7.0 388#_hfa= hfa 389_i2c= i2c 390_ibcs2= ibcs2 391_ie= ie 392_if_ndis= if_ndis 393_io= io 394_linprocfs= linprocfs 395_linsysfs= linsysfs 396_linux= linux 397_mse= mse 398.if ${MK_NCP} != "no" 399_ncp= ncp 400.endif 401_ncv= ncv 402_ndis= ndis 403_nsp= nsp 404.if ${MK_NCP} != "no" 405_nwfs= nwfs 406.endif 407_oltr= oltr 408_pccard= pccard 409_pcfclock= pcfclock 410_pecoff= pecoff 411_pst= pst 412_ray= ray 413_safe= safe 414_sbni= sbni 415_scsi_low= scsi_low 416_sio= sio 417_smbfs= smbfs 418_sound= sound 419_speaker= speaker 420_splash= splash 421_sppp= sppp 422_sr= sr 423_stg= stg 424_streams= streams 425_tmpfs= tmpfs 426_wi= wi 427_xe= xe 428.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 429_zfs= zfs 430.endif 431.if ${MACHINE} == "i386" 432_aac= aac 433_acpi= acpi 434_ahb= ahb 435_arcmsr= arcmsr 436_arl= arl 437_asr= asr 438_bios= bios 439_ciss= ciss 440_cm= cm 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_nxge= nxge 463.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 464.if exists(${.CURDIR}/../crypto/via) 465_padlock= padlock 466.endif 467.endif 468_rr232x= rr232x 469_s3= s3 470_twa= twa 471_vesa= vesa 472.elif ${MACHINE} == "pc98" 473_canbepm= canbepm 474_canbus= canbus 475_pmc= pmc 476_snc= snc 477.endif 478.endif 479 480.if ${MACHINE_ARCH} == "amd64" 481_aac= aac 482_acpi= acpi 483_agp= agp 484_an= an 485_arcmsr= arcmsr 486_ath= ath 487_ath_hal= ath_hal 488_ath_rate_amrr= ath_rate_amrr 489_ath_rate_onoe= ath_rate_onoe 490_ath_rate_sample=ath_rate_sample 491_cardbus= cardbus 492_cbb= cbb 493_ciss= ciss 494_coretemp= coretemp 495_cpufreq= cpufreq 496_digi= digi 497_drm= drm 498_ed= ed 499_em= em 500_exca= exca 501_ext2fs= ext2fs 502_hptiop= hptiop 503_hptmv= hptmv 504_i2c= i2c 505_ichwd= ichwd 506_ida= ida 507_if_ndis= if_ndis 508_iir= iir 509_io= io 510_ipmi= ipmi 511_ips= ips 512_ipw= ipw 513_ipwfw= ipwfw 514_ixgb= ixgb 515_linprocfs= linprocfs 516_linsysfs= linsysfs 517_linux= linux 518_mly= mly 519_ndis= ndis 520_nfe= nfe 521_nve= nve 522_nxge= nxge 523_pccard= pccard 524_rr232x= rr232x 525_safe= safe 526_scsi_low= scsi_low 527_smbfs= smbfs 528_sound= sound 529_speaker= speaker 530_sppp= sppp 531_tmpfs= tmpfs 532_twa= twa 533_wi= wi 534.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 535_zfs= zfs 536.endif 537.endif 538 539.if ${MACHINE_ARCH} == "ia64" 540# Modules not enabled on ia64 (as compared to i386) include: 541# aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv 542# nsp oltr pecoff s3 sbni stg vesa 543# acpi is not enabled because it is broken as a module on ia64 544_aic= aic 545#_ar= ar not 64-bit clean 546_an= an 547_arcnet= arcnet 548_asr= asr 549_bktr= bktr 550_cardbus= cardbus 551_cbb= cbb 552_ciss= ciss 553_cm= cm 554_coff= coff 555_cpufreq= cpufreq 556_em= em 557_ep= ep 558_exca= exca 559_fe= fe 560_hfa= hfa 561_iir= iir 562_mly= mly 563_pccard= pccard 564_scsi_low= scsi_low 565_smbfs= smbfs 566_sound= sound 567_splash= splash 568_sppp= sppp 569#_sr= sr not 64bit clean 570_streams= streams 571_wi= wi 572_xe= xe 573.endif 574 575.if ${MACHINE_ARCH} == "powerpc" 576_an= an 577_ath= ath 578_ath_hal= ath_hal 579_ath_rate_amrr= ath_rate_amrr 580_ath_rate_onoe= ath_rate_onoe 581_ath_rate_sample=ath_rate_sample 582_powermac_nvram= powermac_nvram 583_smbfs= smbfs 584.endif 585 586.if ${MACHINE_ARCH} == "sparc64" 587_ath= ath 588_ath_hal= ath_hal 589_ath_rate_amrr= ath_rate_amrr 590_ath_rate_onoe= ath_rate_onoe 591_ath_rate_sample=ath_rate_sample 592_auxio= auxio 593_em= em 594_i2c= i2c 595_sound= sound 596.endif 597 598.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 599SUBDIR=${MODULES_OVERRIDE} 600.endif 601 602.for reject in ${WITHOUT_MODULES} 603SUBDIR:= ${SUBDIR:N${reject}} 604.endfor 605 606# Calling kldxref(8) for each module is expensive. 607.if !defined(NO_XREF) 608.MAKEFLAGS+= -DNO_XREF 609afterinstall: 610 @if type kldxref >/dev/null 2>&1; then \ 611 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 612 kldxref ${DESTDIR}${KMODDIR}; \ 613 fi 614.endif 615 616.include <bsd.subdir.mk> 617