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