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