1# $FreeBSD$ 2 3.if !defined(NOCRYPT) || defined(ALL_MODULES) 4.if exists(${.CURDIR}/../opencrypto) 5_crypto= crypto 6_cryptodev= cryptodev 7.endif 8.if exists(${.CURDIR}/../crypto) 9_random= random 10.endif 11.endif 12 13SUBDIR= accf_data \ 14 accf_http \ 15 aha \ 16 aic7xxx \ 17 aio \ 18 amr \ 19 an \ 20 aue \ 21 axe \ 22 bge \ 23 bridge \ 24 cam \ 25 cd9660 \ 26 coda \ 27 ${_crypto} \ 28 ${_cryptodev} \ 29 cue \ 30 dc \ 31 de \ 32 digi \ 33 dummynet \ 34 en \ 35 fatm \ 36 fdc \ 37 fdescfs \ 38 firewire \ 39 fxp \ 40 geom \ 41 gx \ 42 hatm \ 43 hifn \ 44 if_disc \ 45 if_ef \ 46 if_faith \ 47 if_gif \ 48 if_gre \ 49 if_ppp \ 50 if_sl \ 51 if_stf \ 52 if_tap \ 53 if_tun \ 54 if_vlan \ 55 ip6fw \ 56 ip_mroute_mod \ 57 ipfw \ 58 isp \ 59 ispfw \ 60 joy \ 61 kue \ 62 lge \ 63 libiconv \ 64 libmchain \ 65 lpt \ 66 mac_biba \ 67 mac_bsdextended \ 68 mac_ifoff \ 69 mac_lomac \ 70 mac_mls \ 71 mac_none \ 72 mac_partition \ 73 mac_portacl \ 74 mac_seeotheruids \ 75 mac_test \ 76 mcd \ 77 md \ 78 mii \ 79 mlx \ 80 mpt \ 81 msdosfs \ 82 my \ 83 nfsclient \ 84 nfsserver \ 85 nge \ 86 nmdm \ 87 ntfs \ 88 nullfs \ 89 pcn \ 90 plip \ 91 portalfs \ 92 ppbus \ 93 ppi \ 94 pps \ 95 procfs \ 96 pseudofs \ 97 raidframe \ 98 ${_random} \ 99 rc \ 100 rc4 \ 101 rl \ 102 rp \ 103 rue \ 104 sbsh \ 105 scd \ 106 sf \ 107 sis \ 108 sk \ 109 sn \ 110 snp \ 111 ste \ 112 sym \ 113 sysvipc \ 114 ti \ 115 tl \ 116 trm \ 117 twe \ 118 tx \ 119 txp \ 120 ubsa \ 121 ubsec \ 122 ucom \ 123 udbp \ 124 udf \ 125 ufm \ 126 uftdi \ 127 ugen \ 128 uhid \ 129 ukbd \ 130 ulpt \ 131 umapfs \ 132 umass \ 133 umodem \ 134 ums \ 135 unionfs \ 136 uplcom \ 137 urio \ 138 usb \ 139 uscanner \ 140 utopia \ 141 uvisor \ 142 uvscom \ 143 vpo \ 144 vr \ 145 vx \ 146 wb \ 147 wlan \ 148 xl 149 150.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "alpha" 151.if defined(WANT_EXT2FS_MODULE) || defined(ALL_MODULES) 152SUBDIR+=ext2fs 153.endif 154.endif 155 156.if !defined(NO_IPFILTER) || defined(ALL_MODULES) 157SUBDIR+=ipfilter 158.endif 159 160.if ${MACHINE_ARCH} != "sparc64" 161SUBDIR+=syscons 162.endif 163 164# XXX some of these can move to the general case when de-i386'ed 165# XXX some of these can move now, but are untested on other architectures. 166.if ${MACHINE_ARCH} == "i386" 167SUBDIR+=3dfx \ 168 agp \ 169 aic \ 170 aout \ 171 apm \ 172 ar \ 173 arcnet \ 174 awi \ 175 bktr \ 176 coff \ 177 drm \ 178 ed \ 179 elink \ 180 em \ 181 ep \ 182 fe \ 183 fpu \ 184 gnufpu \ 185 hea \ 186 hfa \ 187 i2c \ 188 ibcs2 \ 189 ie \ 190 linprocfs \ 191 linux \ 192 lnc \ 193 ncp \ 194 ncv \ 195 netgraph \ 196 nsp \ 197 nwfs \ 198 oltr \ 199 pccard \ 200 pecoff \ 201 ray \ 202 sbni \ 203 scsi_low \ 204 smbfs \ 205 sound \ 206 speaker \ 207 splash \ 208 sppp \ 209 sr \ 210 stg \ 211 streams \ 212 vinum \ 213 wi \ 214 xe 215 216.if ${MACHINE} == "i386" 217SUBDIR+=aac \ 218 acpi \ 219 asr \ 220 bios \ 221 cardbus \ 222 cbb \ 223 ciss \ 224 cm \ 225 dpt \ 226 el \ 227 ex \ 228 exca \ 229 idt \ 230 iir \ 231 ips \ 232 mly \ 233 s3 \ 234 vesa 235 236.elif ${MACHINE} == "pc98" 237SUBDIR+=canbepm \ 238 canbus \ 239 pmc \ 240 snc 241.endif 242.endif 243 244.if ${MACHINE_ARCH} == "ia64" 245# Modules not enabled on ia64 (as compared to i386) include: 246# aac acpi aout apm atspeaker drm fpu gnufpu ibcs2 linprocfs linux ncv 247# nsp oltr pecoff s3 sbni stg vesa 248SUBDIR+=aic \ 249 ar \ 250 arcnet \ 251 asr \ 252 bktr \ 253 cardbus \ 254 cbb \ 255 ciss \ 256 cm \ 257 coff \ 258 el \ 259 em \ 260 ep \ 261 exca \ 262 fe \ 263 hea \ 264 hfa \ 265 iir \ 266 mly \ 267 netgraph \ 268 pccard \ 269 ray \ 270 rc \ 271 scsi_low \ 272 smbfs \ 273 sound \ 274 splash \ 275 sppp \ 276 sr \ 277 streams \ 278 vinum \ 279 wi \ 280 xe 281.endif 282 283.if ${MACHINE_ARCH} == "alpha" 284SUBDIR+=agp \ 285 linprocfs \ 286 linux \ 287 osf1 \ 288 sound \ 289 sppp \ 290 vinum 291.endif 292 293.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" 294SUBDIR+=gem 295.endif 296 297.if ${MACHINE_ARCH} == "sparc64" 298SUBDIR+=hme 299.endif 300 301.if defined(ALL_MODULES) 302SUBDIR+=null 303SUBDIR+=ufs 304.endif 305 306.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 307SUBDIR=${MODULES_OVERRIDE} 308.endif 309 310# Calling kldxref(8) for each module is expensive. 311.if !defined(NO_XREF) 312.MAKEFLAGS+= -DNO_XREF 313afterinstall: 314 @if type kldxref >/dev/null 2>&1; then \ 315 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 316 kldxref ${DESTDIR}${KMODDIR}; \ 317 fi 318.endif 319 320.include <bsd.subdir.mk> 321