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