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