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 ${_padlock} \ 183 patm \ 184 ${_pccard} \ 185 ${_pcfclock} \ 186 pcn \ 187 ${_pecoff} \ 188 ${_pf} \ 189 ${_pflog} \ 190 plip \ 191 ${_pmc} \ 192 portalfs \ 193 ${_powermac_nvram} \ 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} == "amd64" 441_aac= aac 442#_acpi= acpi # doesn't work on amd64 yet as module 443_agp= agp 444_an= an 445_arcmsr= arcmsr 446_ath_hal= ath_hal 447_cardbus= cardbus 448_cbb= cbb 449_ciss= ciss 450_cpufreq= cpufreq 451_digi= digi 452_drm= drm 453_ed= ed 454_em= em 455_exca= exca 456_ext2fs= ext2fs 457_hptmv= hptmv 458_i2c= i2c 459_ichwd= ichwd 460_ida= ida 461_if_ndis= if_ndis 462_iir= iir 463_io= io 464_ipmi= ipmi 465_ips= ips 466_ipw= ipw 467_iwi= iwi 468_mly= mly 469_mxge= mxge 470_ndis= ndis 471_nfe= nfe 472_nve= nve 473_pccard= pccard 474_rr232x= rr232x 475_safe= safe 476_scsi_low= scsi_low 477_smbfs= smbfs 478_sound= sound 479_speaker= speaker 480_sppp= sppp 481_twa= twa 482_wi= wi 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_ath_hal= ath_hal 524_gem= gem 525_powermac_nvram= powermac_nvram 526_smbfs= smbfs 527.endif 528 529.if ${MACHINE_ARCH} == "sparc64" 530_ath_hal= ath_hal 531_auxio= auxio 532_em= em 533_gem= gem 534_i2c= i2c 535_sound= sound 536.endif 537 538.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 539SUBDIR=${MODULES_OVERRIDE} 540.endif 541 542.for reject in ${WITHOUT_MODULES} 543SUBDIR:= ${SUBDIR:N${reject}} 544.endfor 545 546# Calling kldxref(8) for each module is expensive. 547.if !defined(NO_XREF) 548.MAKEFLAGS+= -DNO_XREF 549afterinstall: 550 @if type kldxref >/dev/null 2>&1; then \ 551 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 552 kldxref ${DESTDIR}${KMODDIR}; \ 553 fi 554.endif 555 556.include <bsd.subdir.mk> 557