xref: /freebsd/sys/modules/Makefile (revision 3d9368b2d03926ad079a2eb910f1a423df925dd5)
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	netgraph \
212	nsp \
213	nwfs \
214	oltr \
215	pccard \
216	pcfclock \
217	pecoff \
218	ray \
219	safe \
220	sbni \
221	scsi_low \
222	smbfs \
223	sound \
224	speaker \
225	splash \
226	sppp \
227	sr \
228	stg \
229	streams \
230	vinum \
231	wi \
232	xe
233
234.if ${MACHINE} == "i386"
235SUBDIR+=aac \
236	acpi \
237	asr \
238	bios \
239	cardbus \
240	cbb \
241	ciss \
242	cm \
243	dpt \
244	el \
245	ex \
246	exca \
247	idt \
248	iir \
249	ips \
250	mly \
251	s3 \
252	vesa
253
254.elif ${MACHINE} == "pc98"
255SUBDIR+=canbepm \
256	canbus \
257	pmc \
258	snc
259.endif
260.endif
261
262.if ${MACHINE_ARCH} == "ia64"
263# Modules not enabled on ia64 (as compared to i386) include:
264#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
265#	nsp oltr pecoff s3 sbni stg vesa
266SUBDIR+=aic \
267	ar \
268	arcnet \
269	asr \
270	bktr \
271	cardbus \
272	cbb \
273	ciss \
274	cm \
275	coff \
276	el \
277	em \
278	ep \
279	exca \
280	fe \
281	hfa \
282	iir \
283	mly \
284	netgraph \
285	pccard \
286	ray \
287	rc \
288	scsi_low \
289	smbfs \
290	sound \
291	splash \
292	sppp \
293	sr \
294	streams \
295	vinum \
296	wi \
297	xe
298.endif
299
300.if ${MACHINE_ARCH} == "alpha"
301SUBDIR+=agp \
302	linprocfs \
303	linux \
304	osf1 \
305	sound \
306	sppp \
307	vinum
308.endif
309
310.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
311SUBDIR+=gem
312.endif
313
314.if ${MACHINE_ARCH} == "sparc64"
315SUBDIR+=hme
316.endif
317
318.if defined(ALL_MODULES)
319SUBDIR+=null
320SUBDIR+=ufs
321.endif
322
323.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
324SUBDIR=${MODULES_OVERRIDE}
325.endif
326
327# pcic -- currently broken and being worked on out of tree.
328# oldcard -- specialized use for debugging only.
329# owi -- totally unsupported for debugging only.
330
331# Calling kldxref(8) for each module is expensive.
332.if !defined(NO_XREF)
333.MAKEFLAGS+=	-DNO_XREF
334afterinstall:
335	@if type kldxref >/dev/null 2>&1; then \
336		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
337		kldxref ${DESTDIR}${KMODDIR}; \
338	fi
339.endif
340
341.include <bsd.subdir.mk>
342