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