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