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