xref: /freebsd-12.1/sys/modules/Makefile (revision 4e0a104f)
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	ufm \
141	uftdi \
142	ugen \
143	uhid \
144	ukbd \
145	ulpt \
146	umapfs \
147	umass \
148	umct \
149	umodem \
150	ums \
151	unionfs \
152	uplcom \
153	urio \
154	usb \
155	uscanner \
156	utopia \
157	uvisor \
158	uvscom \
159	vpo \
160	vr \
161	vx \
162	wb \
163	wlan \
164	xl
165
166.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "alpha"
167.if defined(WANT_EXT2FS_MODULE) || defined(ALL_MODULES)
168SUBDIR+=ext2fs
169.endif
170.endif
171
172.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
173SUBDIR+=ipfilter
174.endif
175
176.if ${MACHINE_ARCH} != "sparc64"
177SUBDIR+=syscons
178.endif
179
180# XXX some of these can move to the general case when de-i386'ed
181# XXX some of these can move now, but are untested on other architectures.
182.if ${MACHINE_ARCH} == "i386"
183SUBDIR+=3dfx \
184	agp \
185	aic \
186	amd \
187	aout \
188	apm \
189	ar \
190	arcnet \
191	ath_hal \
192	awi \
193	bktr \
194	coff \
195	drm \
196	ed \
197	elink \
198	em \
199	ep \
200	fe \
201	hea \
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	hea \
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# Calling kldxref(8) for each module is expensive.
329.if !defined(NO_XREF)
330.MAKEFLAGS+=	-DNO_XREF
331afterinstall:
332	@if type kldxref >/dev/null 2>&1; then \
333		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
334		kldxref ${DESTDIR}${KMODDIR}; \
335	fi
336.endif
337
338.include <bsd.subdir.mk>
339