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