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