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