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