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