]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
Move rc(4) over to MI notes and enable it as a MI module.
[FreeBSD/FreeBSD.git] / sys / modules / Makefile
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
15 SUBDIR= 3dfx \
16         accf_data \
17         accf_http \
18         agp \
19         aha \
20         aic7xxx \
21         aio \
22         amr \
23         an \
24         aue \
25         bge \
26         bridge \
27         cam \
28         ccd \
29         cd9660 \
30         coda \
31         ${_crypto} \
32         ${_cryptodev} \
33         cue \
34         dc \
35         de \
36         digi \
37         dummynet \
38         fdc \
39         fdescfs \
40         firewire \
41         fxp \
42         gx \
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_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         ${_random} \
95         rc \
96         rl \
97         rp \
98         sf \
99         sis \
100         sk \
101         sn \
102         snp \
103         ste \
104         sym \
105         sysvipc \
106         ti \
107         tl \
108         trm \
109         twe \
110         tx \
111         txp \
112         ubsa \
113         ubsec \
114         ucom \
115         udbp \
116         udf \
117         ufm \
118         uftdi \
119         ugen \
120         uhid \
121         ukbd \
122         ulpt \
123         umapfs \
124         umass \
125         umodem \
126         ums \
127         unionfs \
128         uplcom \
129         urio \
130         usb \
131         uscanner \
132         uvisor \
133         uvscom \
134         vpo \
135         vr \
136         vx \
137         wb \
138         xl
139
140 .if defined(WANT_EXT2FS_MODULE)
141 SUBDIR+=ext2fs
142 .endif
143
144 .if !defined(NO_IPFILTER)
145 SUBDIR+=ipfilter
146 .endif
147
148 .if ${MACHINE_ARCH} != "sparc64"
149 SUBDIR+=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"
155 SUBDIR+=aic \
156         aout \
157         apm \
158         ar \
159         arcnet \
160         bktr \
161         coff \
162         ed \
163         em \
164         ep \
165         fe \
166         fpu \
167         gnufpu \
168         hea \
169         hfa \
170         ibcs2 \
171         linprocfs \
172         linux \
173         lnc \
174         lomac \
175         ncv \
176         netgraph \
177         nsp \
178         oltr \
179         pccard \
180         pecoff \
181         ray \
182         sbni \
183         scsi_low \
184         smbfs \
185         sound \
186         splash \
187         sppp \
188         sr \
189         stg \
190         streams \
191         vinum \
192         wi \
193         xe
194
195 .if ${MACHINE} == "i386"
196 SUBDIR+=aac \
197         acpi \
198         asr \
199         atspeaker \
200         cardbus \
201         cbb \
202         ciss \
203         cm \
204         drm \
205         el \
206         exca \
207         iir \
208         mly \
209         s3 \
210         vesa
211         
212 .elif ${MACHINE} == "pc98"
213 SUBDIR+=pcspeaker \
214         pmc \
215         snc
216 .endif
217 .endif
218
219 .if ${MACHINE_ARCH} == "ia64"
220 # Modules not enabled on ia64 (as compared to i386) include:
221 #       aac acpi aout apm atspeaker drm fpu gnufpu ibcs2 linprocfs linux ncv
222 #       nsp oltr pecoff s3 sbni stg vesa
223 SUBDIR+=aic \
224         ar \
225         arcnet \
226         asr \
227         bktr \
228         cardbus \
229         cbb \
230         ciss \
231         cm \
232         coff \
233         el \
234         em \
235         ep \
236         exca \
237         fe \
238         hea \
239         hfa \
240         iir \
241         lomac \
242         mly \
243         netgraph \
244         pccard \
245         ray \
246         rc \
247         scsi_low \
248         smbfs \
249         sound \
250         splash \
251         sppp \
252         sr \
253         streams \
254         vinum \
255         wi \
256         xe
257 .endif
258
259 .if ${MACHINE_ARCH} == "alpha"
260 SUBDIR+=linprocfs \
261         linux \
262         lomac \
263         osf1 \
264         sound \
265         sppp \
266         vinum
267 .endif
268
269 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
270 SUBDIR=${MODULES_OVERRIDE}
271 .endif
272
273 # Calling kldxref(8) for each module is expensive.
274 .if !defined(NO_XREF)
275 .MAKEFLAGS:=    ${.MAKEFLAGS} -DNO_XREF
276 afterinstall:
277         @if type kldxref >/dev/null 2>&1; then \
278                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
279                 kldxref ${DESTDIR}${KMODDIR}; \
280         fi
281 .endif
282
283 .include <bsd.subdir.mk>