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 x86emu \ 302 ${_xe} \ 303 xfs \ 304 xl \ 305 ${_zfs} \ 306 zlib \ 307 308.if ${MACHINE_ARCH} != "powerpc" 309_syscons= syscons 310_vpo= vpo 311.endif 312 313.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 314.if exists(${.CURDIR}/../opencrypto) 315_crypto= crypto 316_cryptodev= cryptodev 317.endif 318.if exists(${.CURDIR}/../crypto) 319_random= random 320.endif 321.endif 322 323.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 324_ipfilter= ipfilter 325.endif 326 327.if ${MK_PF} != "no" || defined(ALL_MODULES) 328_pf= pf 329_pflog= pflog 330.endif 331 332.if ${MACHINE_ARCH} == "i386" 333# XXX some of these can move to the general case when de-i386'ed 334# XXX some of these can move now, but are untested on other architectures. 335_3dfx= 3dfx 336_3dfx_linux= 3dfx_linux 337_agp= agp 338_aic= aic 339_amd= amd 340_an= an 341_aout= aout 342_apm= apm 343_arcnet= arcnet 344_bktr= bktr 345_cardbus= cardbus 346_cbb= cbb 347_ce= ce 348_coff= coff 349_cp= cp 350_cpuctl= cpuctl 351_cpufreq= cpufreq 352_cs= cs 353.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 354_cyclic= cyclic 355.endif 356_dpms= dpms 357_drm= drm 358.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 359_dtrace= dtrace 360.endif 361_ed= ed 362_elink= elink 363_em= em 364_ep= ep 365_et= et 366_exca= exca 367_ext2fs= ext2fs 368_fe= fe 369_glxsb= glxsb 370_i2c= i2c 371_ibcs2= ibcs2 372_ie= ie 373_if_ndis= if_ndis 374_igb= igb 375_io= io 376_linprocfs= linprocfs 377_linsysfs= linsysfs 378_linux= linux 379_mse= mse 380.if ${MK_NCP} != "no" 381_ncp= ncp 382.endif 383_ncv= ncv 384_ndis= ndis 385_nsp= nsp 386.if ${MK_NCP} != "no" 387_nwfs= nwfs 388.endif 389.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 390_opensolaris= opensolaris 391.endif 392_pccard= pccard 393_pcfclock= pcfclock 394_pst= pst 395_rdma= rdma 396_safe= safe 397_sbni= sbni 398_scsi_low= scsi_low 399_smbfs= smbfs 400_sound= sound 401_speaker= speaker 402_splash= splash 403_sppp= sppp 404_stg= stg 405_streams= streams 406_svr4= svr4 407_tmpfs= tmpfs 408_wi= wi 409_xe= xe 410.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 411_zfs= zfs 412.endif 413.if ${MACHINE} == "i386" 414_aac= aac 415_acpi= acpi 416_ahb= ahb 417_amdtemp= amdtemp 418_arcmsr= arcmsr 419_asmc= asmc 420_asr= asr 421_bios= bios 422_ciss= ciss 423_cm= cm 424_cmx= cmx 425_coretemp= coretemp 426_ctau= ctau 427_dpt= dpt 428_ex= ex 429_hptiop= hptiop 430_hptmv= hptmv 431_hptrr= hptrr 432_ichwd= ichwd 433_ida= ida 434_iir= iir 435_ipmi= ipmi 436_ips= ips 437_ipw= ipw 438_ipwfw= ipwfw 439_iwi= iwi 440_iwifw= iwifw 441_iwn= iwn 442_iwnfw= iwnfw 443_ixgb= ixgb 444_mly= mly 445_nfe= nfe 446_nve= nve 447_nvram= nvram 448_nxge= nxge 449_wpi= wpi 450_wpifw= wpifw 451.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 452.if exists(${.CURDIR}/../crypto/via) 453_padlock= padlock 454.endif 455.endif 456_s3= s3 457_twa= twa 458_vesa= vesa 459.elif ${MACHINE} == "pc98" 460_canbepm= canbepm 461_canbus= canbus 462_pmc= pmc 463_snc= snc 464.endif 465.endif 466 467.if ${MACHINE_ARCH} == "amd64" 468_aac= aac 469_acpi= acpi 470_agp= agp 471_an= an 472_amdtemp= amdtemp 473_arcmsr= arcmsr 474_asmc= asmc 475_cardbus= cardbus 476_cbb= cbb 477_cmx= cmx 478_ciss= ciss 479_coretemp= coretemp 480_cpuctl= cpuctl 481_cpufreq= cpufreq 482.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 483_cyclic= cyclic 484.endif 485_dpms= dpms 486_drm= drm 487.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 488_dtrace= dtrace 489.endif 490_ed= ed 491_et= et 492_em= em 493_exca= exca 494_ext2fs= ext2fs 495_hptiop= hptiop 496_hptmv= hptmv 497_hptrr= hptrr 498_i2c= i2c 499_ichwd= ichwd 500_ida= ida 501_if_ndis= if_ndis 502_igb= igb 503_iir= iir 504_io= io 505_ipmi= ipmi 506_ips= ips 507_ipw= ipw 508_ipwfw= ipwfw 509_iwn= iwn 510_iwnfw= iwnfw 511_ixgb= ixgb 512_linprocfs= linprocfs 513_linsysfs= linsysfs 514_linux= linux 515_mly= mly 516_ndis= ndis 517_nfe= nfe 518_nve= nve 519_nvram= nvram 520_nxge= nxge 521.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 522_opensolaris= opensolaris 523.endif 524.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 525.if exists(${.CURDIR}/../crypto/via) 526_padlock= padlock 527.endif 528.endif 529_pccard= pccard 530_rdma= rdma 531_s3= s3 532_safe= safe 533_scsi_low= scsi_low 534_smbfs= smbfs 535_sound= sound 536_speaker= speaker 537_splash= splash 538_sppp= sppp 539_tmpfs= tmpfs 540_twa= twa 541_vesa= vesa 542_wi= wi 543_wpi= wpi 544_wpifw= wpifw 545.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 546_zfs= zfs 547.endif 548.endif 549 550.if ${MACHINE_ARCH} == "ia64" 551# Modules not enabled on ia64 (as compared to i386) include: 552# aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv 553# nsp s3 sbni stg vesa 554# acpi is not enabled because it is broken as a module on ia64 555_aic= aic 556_an= an 557_arcnet= arcnet 558_asr= asr 559_bktr= bktr 560_cardbus= cardbus 561_cbb= cbb 562_ciss= ciss 563_cm= cm 564_cmx= cmx 565_coff= coff 566_cpufreq= cpufreq 567_em= em 568_ep= ep 569_exca= exca 570_fe= fe 571_igb= igb 572_iir= iir 573_mly= mly 574_pccard= pccard 575_scsi_low= scsi_low 576_smbfs= smbfs 577_sound= sound 578_splash= splash 579_sppp= sppp 580_streams= streams 581_wi= wi 582_xe= xe 583.endif 584 585.if ${MACHINE_ARCH} == "powerpc" 586_an= an 587_bm= bm 588_cpufreq= cpufreq 589_nvram= powermac_nvram 590_smbfs= smbfs 591_sound= sound 592.endif 593 594.if ${MACHINE_ARCH} == "sparc64" 595_auxio= auxio 596_em= em 597_i2c= i2c 598_igb= igb 599.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 600_opensolaris= opensolaris 601.endif 602_sound= sound 603.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 604_zfs= zfs 605.endif 606.endif 607 608.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 609SUBDIR=${MODULES_OVERRIDE} 610.endif 611 612.for reject in ${WITHOUT_MODULES} 613SUBDIR:= ${SUBDIR:N${reject}} 614.endfor 615 616# Calling kldxref(8) for each module is expensive. 617.if !defined(NO_XREF) 618.MAKEFLAGS+= -DNO_XREF 619afterinstall: 620 @if type kldxref >/dev/null 2>&1; then \ 621 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 622 kldxref ${DESTDIR}${KMODDIR}; \ 623 fi 624.endif 625 626.include <bsd.subdir.mk> 627