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