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