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