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