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