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