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