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