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