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 rl \ 98 rp \ 99 sf \ 100 sis \ 101 sk \ 102 sn \ 103 snp \ 104 ste \ 105 sym \ 106 sysvipc \ 107 ti \ 108 tl \ 109 trm \ 110 twe \ 111 tx \ 112 txp \ 113 ubsa \ 114 ubsec \ 115 ucom \ 116 udbp \ 117 udf \ 118 ufm \ 119 uftdi \ 120 ugen \ 121 uhid \ 122 ukbd \ 123 ulpt \ 124 umapfs \ 125 umass \ 126 umodem \ 127 ums \ 128 unionfs \ 129 uplcom \ 130 urio \ 131 usb \ 132 uscanner \ 133 uvisor \ 134 uvscom \ 135 vpo \ 136 vr \ 137 vx \ 138 wb \ 139 xl 140 141.if defined(WANT_EXT2FS_MODULE) 142SUBDIR+=ext2fs 143.endif 144 145.if !defined(NO_IPFILTER) 146SUBDIR+=ipfilter 147.endif 148 149.if ${MACHINE_ARCH} != "sparc64" 150SUBDIR+=syscons 151.endif 152 153# XXX some of these can move to the general case when de-i386'ed 154# XXX some of these can move now, but are untested on other architectures. 155.if ${MACHINE_ARCH} == "i386" 156SUBDIR+=3dfx \ 157 aic \ 158 aout \ 159 apm \ 160 ar \ 161 arcnet \ 162 bktr \ 163 coff \ 164 ed \ 165 em \ 166 ep \ 167 fe \ 168 fpu \ 169 gnufpu \ 170 hea \ 171 hfa \ 172 ibcs2 \ 173 linprocfs \ 174 linux \ 175 lnc \ 176 lomac \ 177 ncv \ 178 netgraph \ 179 nsp \ 180 oltr \ 181 pccard \ 182 pecoff \ 183 ray \ 184 sbni \ 185 scsi_low \ 186 smbfs \ 187 sound \ 188 splash \ 189 sppp \ 190 sr \ 191 stg \ 192 streams \ 193 vinum \ 194 wi \ 195 xe 196 197.if ${MACHINE} == "i386" 198SUBDIR+=aac \ 199 acpi \ 200 asr \ 201 atspeaker \ 202 cardbus \ 203 cbb \ 204 ciss \ 205 cm \ 206 drm \ 207 el \ 208 exca \ 209 iir \ 210 mly \ 211 s3 \ 212 vesa 213 214.elif ${MACHINE} == "pc98" 215SUBDIR+=pcspeaker \ 216 pmc \ 217 snc 218.endif 219.endif 220 221.if ${MACHINE_ARCH} == "ia64" 222# Modules not enabled on ia64 (as compared to i386) include: 223# aac acpi aout apm atspeaker drm fpu gnufpu ibcs2 linprocfs linux ncv 224# nsp oltr pecoff s3 sbni stg vesa 225SUBDIR+=aic \ 226 ar \ 227 arcnet \ 228 asr \ 229 bktr \ 230 cardbus \ 231 cbb \ 232 ciss \ 233 cm \ 234 coff \ 235 el \ 236 em \ 237 ep \ 238 exca \ 239 fe \ 240 hea \ 241 hfa \ 242 iir \ 243 lomac \ 244 mly \ 245 netgraph \ 246 pccard \ 247 ray \ 248 rc \ 249 scsi_low \ 250 smbfs \ 251 sound \ 252 splash \ 253 sppp \ 254 sr \ 255 streams \ 256 vinum \ 257 wi \ 258 xe 259.endif 260 261.if ${MACHINE_ARCH} == "alpha" 262SUBDIR+=linprocfs \ 263 linux \ 264 lomac \ 265 osf1 \ 266 sound \ 267 sppp \ 268 vinum 269.endif 270 271.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 272SUBDIR=${MODULES_OVERRIDE} 273.endif 274 275# Calling kldxref(8) for each module is expensive. 276.if !defined(NO_XREF) 277.MAKEFLAGS:= ${.MAKEFLAGS} -DNO_XREF 278afterinstall: 279 @if type kldxref >/dev/null 2>&1; then \ 280 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 281 kldxref ${DESTDIR}${KMODDIR}; \ 282 fi 283.endif 284 285.include <bsd.subdir.mk> 286