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