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