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