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