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