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