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