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