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