1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5SUBDIR= ${_3dfx} \ 6 ${_3dfx_linux} \ 7 ${_aac} \ 8 accf_data \ 9 accf_dns \ 10 accf_http \ 11 ${_acpi} \ 12 ae \ 13 age \ 14 ${_agp} \ 15 aha \ 16 ${_ahb} \ 17 ${_aic} \ 18 aic7xxx \ 19 aio \ 20 ${_amd} \ 21 ale \ 22 amr \ 23 ${_an} \ 24 ${_aout} \ 25 ${_apm} \ 26 ${_ar} \ 27 ${_arcmsr} \ 28 ${_arcnet} \ 29 ${_asmc} \ 30 ${_asr} \ 31 ata \ 32 ath \ 33 ath_rate_amrr \ 34 ath_rate_onoe \ 35 ath_rate_sample \ 36 aue \ 37 ${_auxio} \ 38 axe \ 39 bce \ 40 bfe \ 41 bge \ 42 ${_bios} \ 43 ${_bktr} \ 44 ${_bm} \ 45 bridgestp \ 46 cam \ 47 ${_canbepm} \ 48 ${_canbus} \ 49 ${_cardbus} \ 50 ${_cbb} \ 51 cd9660 \ 52 cd9660_iconv \ 53 cdce \ 54 ${_ce} \ 55 ${_ciss} \ 56 ${_cm} \ 57 ${_cmx} \ 58 coda \ 59 coda5 \ 60 ${_coff} \ 61 ${_coretemp} \ 62 ${_cp} \ 63 ${_cpuctl} \ 64 ${_cpufreq} \ 65 ${_crypto} \ 66 ${_cryptodev} \ 67 ${_cs} \ 68 ${_ctau} \ 69 cue \ 70 cxgb \ 71 ${_cyclic} \ 72 dc \ 73 dcons \ 74 dcons_crom \ 75 de \ 76 ${_dpms} \ 77 ${_dpt} \ 78 ${_drm} \ 79 ${_dtrace} \ 80 dummynet \ 81 ${_ed} \ 82 ehci \ 83 ${_elink} \ 84 ${_em} \ 85 en \ 86 ${_ep} \ 87 ${_et} \ 88 ${_ex} \ 89 ${_exca} \ 90 ${_ext2fs} \ 91 fatm \ 92 fdc \ 93 fdescfs \ 94 ${_fe} \ 95 firewire \ 96 firmware \ 97 fxp \ 98 gem \ 99 geom \ 100 ${_glxsb} \ 101 hatm \ 102 hifn \ 103 hme \ 104 ${_hptiop} \ 105 ${_hptmv} \ 106 ${_hptrr} \ 107 hwpmc \ 108 ${_i2c} \ 109 ${_ibcs2} \ 110 ${_ichwd} \ 111 ${_ida} \ 112 ${_ie} \ 113 if_bridge \ 114 if_disc \ 115 if_edsc \ 116 if_ef \ 117 if_faith \ 118 if_gif \ 119 if_gre \ 120 if_lagg \ 121 ${_if_ndis} \ 122 if_stf \ 123 if_tap \ 124 if_tun \ 125 if_vlan \ 126 ${_igb} \ 127 ${_iir} \ 128 ${_io} \ 129 ipdivert \ 130 ${_ipfilter} \ 131 ipfw \ 132 ipfw_nat \ 133 ${_ipmi} \ 134 ip_mroute_mod \ 135 ${_ips} \ 136 ${_ipw} \ 137 ${_ipwfw} \ 138 iscsi \ 139 isp \ 140 ispfw \ 141 ${_iwi} \ 142 ${_iwifw} \ 143 ${_iwn} \ 144 ${_iwnfw} \ 145 ${_ixgb} \ 146 jme \ 147 joy \ 148 ${_k8temp} \ 149 kbdmux \ 150 krpc \ 151 kue \ 152 le \ 153 lge \ 154 libalias \ 155 libiconv \ 156 libmbpool \ 157 libmchain \ 158 ${_linprocfs} \ 159 ${_linsysfs} \ 160 ${_linux} \ 161 lmc \ 162 lpt \ 163 mac_biba \ 164 mac_bsdextended \ 165 mac_ifoff \ 166 mac_lomac \ 167 mac_mls \ 168 mac_none \ 169 mac_partition \ 170 mac_portacl \ 171 mac_seeotheruids \ 172 mac_stub \ 173 mac_test \ 174 malo \ 175 mcd \ 176 md \ 177 mem \ 178 mfi \ 179 mii \ 180 mlx \ 181 ${_mly} \ 182 mmc \ 183 mmcsd \ 184 mpt \ 185 mqueue \ 186 msdosfs \ 187 msdosfs_iconv \ 188 ${_mse} \ 189 msk \ 190 mxge \ 191 my \ 192 ${_ncp} \ 193 ${_ncv} \ 194 ${_ndis} \ 195 netgraph \ 196 ${_nfe} \ 197 nfsclient \ 198 nfslockd \ 199 nfsserver \ 200 nge \ 201 nmdm \ 202 ${_nsp} \ 203 ntfs \ 204 ntfs_iconv \ 205 nullfs \ 206 ${_nve} \ 207 ${_nvram} \ 208 ${_nwfs} \ 209 ${_nxge} \ 210 ${_opensolaris} \ 211 ohci \ 212 ${_padlock} \ 213 patm \ 214 ${_pccard} \ 215 ${_pcfclock} \ 216 pcn \ 217 ${_pf} \ 218 ${_pflog} \ 219 plip \ 220 ${_pmc} \ 221 portalfs \ 222 ppbus \ 223 ppc \ 224 ppi \ 225 pps \ 226 procfs \ 227 pseudofs \ 228 ${_pst} \ 229 puc \ 230 ral \ 231 ${_random} \ 232 ${_ray} \ 233 rc4 \ 234 ${_rdma} \ 235 re \ 236 reiserfs \ 237 rl \ 238 rue \ 239 rum \ 240 ${_s3} \ 241 ${_safe} \ 242 ${_sbni} \ 243 scc \ 244 scd \ 245 ${_scsi_low} \ 246 sdhci \ 247 sem \ 248 sf \ 249 slhci \ 250 sis \ 251 sk \ 252 ${_smbfs} \ 253 sn \ 254 ${_snc} \ 255 snp \ 256 ${_sound} \ 257 ${_speaker} \ 258 ${_splash} \ 259 ${_sppp} \ 260 ${_sr} \ 261 ste \ 262 ${_stg} \ 263 stge \ 264 ${_streams} \ 265 sym \ 266 ${_syscons} \ 267 sysvipc \ 268 ti \ 269 tl \ 270 ${_tmpfs} \ 271 trm \ 272 ${_twa} \ 273 twe \ 274 tx \ 275 txp \ 276 u3g \ 277 uark \ 278 uart \ 279 ubsa \ 280 ubsec \ 281 ucom \ 282 udav \ 283 udbp \ 284 udf \ 285 udf_iconv \ 286 ufm \ 287 ${_ufs} \ 288 ufoma \ 289 uftdi \ 290 ugen \ 291 uhci \ 292 uhid \ 293 uipaq \ 294 ukbd \ 295 ulpt \ 296 umass \ 297 umct \ 298 umodem \ 299 ums \ 300 unionfs \ 301 ${_upgt} \ 302 uplcom \ 303 ural \ 304 urio \ 305 usb \ 306 usb2 \ 307 uscanner \ 308 uslcom \ 309 utopia \ 310 uvisor \ 311 uvscom \ 312 ${_vesa} \ 313 vge \ 314 vkbd \ 315 ${_vpo} \ 316 vr \ 317 vx \ 318 wb \ 319 ${_wi} \ 320 wlan \ 321 wlan_acl \ 322 wlan_amrr \ 323 wlan_ccmp \ 324 wlan_rssadapt \ 325 wlan_tkip \ 326 wlan_wep \ 327 wlan_xauth \ 328 ${_wpi} \ 329 ${_wpifw} \ 330 ${_xe} \ 331 xfs \ 332 xl \ 333 ${_zfs} \ 334 zlib \ 335 zyd 336 337.if ${MACHINE_ARCH} != "powerpc" 338_syscons= syscons 339_vpo= vpo 340.endif 341 342.if defined(ALL_MODULES) 343_ufs= ufs 344.endif 345 346.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 347.if exists(${.CURDIR}/../opencrypto) 348_crypto= crypto 349_cryptodev= cryptodev 350.endif 351.if exists(${.CURDIR}/../crypto) 352_random= random 353.endif 354.endif 355 356.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 357_ipfilter= ipfilter 358.endif 359 360.if ${MK_PF} != "no" || defined(ALL_MODULES) 361_pf= pf 362_pflog= pflog 363.endif 364 365.if ${MACHINE_ARCH} == "i386" 366# XXX some of these can move to the general case when de-i386'ed 367# XXX some of these can move now, but are untested on other architectures. 368_3dfx= 3dfx 369_3dfx_linux= 3dfx_linux 370_agp= agp 371_aic= aic 372_amd= amd 373_an= an 374_aout= aout 375_apm= apm 376_ar= ar 377_arcnet= arcnet 378_bktr= bktr 379_cardbus= cardbus 380_cbb= cbb 381_ce= ce 382_coff= coff 383_cp= cp 384_cpuctl= cpuctl 385_cpufreq= cpufreq 386_cs= cs 387.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 388_cyclic= cyclic 389.endif 390_dpms= dpms 391_drm= drm 392.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 393_dtrace= dtrace 394.endif 395_ed= ed 396_elink= elink 397_em= em 398_ep= ep 399_et= et 400_exca= exca 401_ext2fs= ext2fs 402_fe= fe 403_glxsb= glxsb 404_i2c= i2c 405_ibcs2= ibcs2 406_ie= ie 407_if_ndis= if_ndis 408_igb= igb 409_io= io 410_linprocfs= linprocfs 411_linsysfs= linsysfs 412_linux= linux 413_mse= mse 414.if ${MK_NCP} != "no" 415_ncp= ncp 416.endif 417_ncv= ncv 418_ndis= ndis 419_nsp= nsp 420.if ${MK_NCP} != "no" 421_nwfs= nwfs 422.endif 423.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 424_opensolaris= opensolaris 425.endif 426_pccard= pccard 427_pcfclock= pcfclock 428_pst= pst 429_ray= ray 430_rdma= rdma 431_safe= safe 432_sbni= sbni 433_scsi_low= scsi_low 434_smbfs= smbfs 435_sound= sound 436_speaker= speaker 437_splash= splash 438_sppp= sppp 439_sr= sr 440_stg= stg 441_streams= streams 442_tmpfs= tmpfs 443_upgt= upgt 444_wi= wi 445_xe= xe 446.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 447_zfs= zfs 448.endif 449.if ${MACHINE} == "i386" 450_aac= aac 451_acpi= acpi 452_ahb= ahb 453_arcmsr= arcmsr 454_asmc= asmc 455_asr= asr 456_bios= bios 457_ciss= ciss 458_cm= cm 459_cmx= cmx 460_coretemp= coretemp 461_ctau= ctau 462_dpt= dpt 463_ex= ex 464_hptiop= hptiop 465_hptmv= hptmv 466_hptrr= hptrr 467_ichwd= ichwd 468_ida= ida 469_iir= iir 470_ipmi= ipmi 471_ips= ips 472_ipw= ipw 473_ipwfw= ipwfw 474_iwi= iwi 475_iwifw= iwifw 476_iwn= iwn 477_iwnfw= iwnfw 478_ixgb= ixgb 479_k8temp= k8temp 480_mly= mly 481_nfe= nfe 482_nve= nve 483_nvram= nvram 484_nxge= nxge 485_wpi= wpi 486_wpifw= wpifw 487.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 488.if exists(${.CURDIR}/../crypto/via) 489_padlock= padlock 490.endif 491.endif 492_s3= s3 493_twa= twa 494_vesa= vesa 495.elif ${MACHINE} == "pc98" 496_canbepm= canbepm 497_canbus= canbus 498_pmc= pmc 499_snc= snc 500.endif 501.endif 502 503.if ${MACHINE_ARCH} == "amd64" 504_aac= aac 505_acpi= acpi 506_agp= agp 507_an= an 508_arcmsr= arcmsr 509_asmc= asmc 510_cardbus= cardbus 511_cbb= cbb 512_cmx= cmx 513_ciss= ciss 514_coretemp= coretemp 515_cpuctl= cpuctl 516_cpufreq= cpufreq 517.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 518_cyclic= cyclic 519.endif 520_drm= drm 521.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 522_dtrace= dtrace 523.endif 524_ed= ed 525_et= et 526_em= em 527_exca= exca 528_ext2fs= ext2fs 529_hptiop= hptiop 530_hptmv= hptmv 531_hptrr= hptrr 532_i2c= i2c 533_ichwd= ichwd 534_ida= ida 535_if_ndis= if_ndis 536_igb= igb 537_iir= iir 538_io= io 539_ipmi= ipmi 540_ips= ips 541_ipw= ipw 542_ipwfw= ipwfw 543_iwn= iwn 544_iwnfw= iwnfw 545_ixgb= ixgb 546_k8temp= k8temp 547_linprocfs= linprocfs 548_linsysfs= linsysfs 549_linux= linux 550_mly= mly 551_ndis= ndis 552_nfe= nfe 553_nve= nve 554_nvram= nvram 555_nxge= nxge 556.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 557_opensolaris= opensolaris 558.endif 559_pccard= pccard 560_rdma= rdma 561_safe= safe 562_scsi_low= scsi_low 563_smbfs= smbfs 564_sound= sound 565_speaker= speaker 566_sppp= sppp 567_tmpfs= tmpfs 568_twa= twa 569_upgt= upgt 570_wi= wi 571_wpi= wpi 572_wpifw= wpifw 573.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 574_zfs= zfs 575.endif 576.endif 577 578.if ${MACHINE_ARCH} == "ia64" 579# Modules not enabled on ia64 (as compared to i386) include: 580# aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv 581# nsp s3 sbni stg vesa 582# acpi is not enabled because it is broken as a module on ia64 583_aic= aic 584#_ar= ar not 64-bit clean 585_an= an 586_arcnet= arcnet 587_asr= asr 588_bktr= bktr 589_cardbus= cardbus 590_cbb= cbb 591_ciss= ciss 592_cm= cm 593_cmx= cmx 594_coff= coff 595_cpufreq= cpufreq 596_em= em 597_ep= ep 598_exca= exca 599_fe= fe 600_igb= igb 601_iir= iir 602_mly= mly 603_pccard= pccard 604_scsi_low= scsi_low 605_smbfs= smbfs 606_sound= sound 607_splash= splash 608_sppp= sppp 609#_sr= sr not 64bit clean 610_streams= streams 611_wi= wi 612_xe= xe 613.endif 614 615.if ${MACHINE_ARCH} == "powerpc" 616_an= an 617_bm= bm 618_nvram= powermac_nvram 619_smbfs= smbfs 620_upgt= upgt 621.endif 622 623.if ${MACHINE_ARCH} == "sparc64" 624_auxio= auxio 625_em= em 626_i2c= i2c 627_igb= igb 628_sound= sound 629_upgt= upgt 630.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 631_zfs= zfs 632.endif 633.endif 634 635.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 636SUBDIR=${MODULES_OVERRIDE} 637.endif 638 639.for reject in ${WITHOUT_MODULES} 640SUBDIR:= ${SUBDIR:N${reject}} 641.endfor 642 643# Calling kldxref(8) for each module is expensive. 644.if !defined(NO_XREF) 645.MAKEFLAGS+= -DNO_XREF 646afterinstall: 647 @if type kldxref >/dev/null 2>&1; then \ 648 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 649 kldxref ${DESTDIR}${KMODDIR}; \ 650 fi 651.endif 652 653.include <bsd.subdir.mk> 654