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