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