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