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