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