xref: /freebsd/sys/modules/Makefile (revision 6780ab54325a71e7e70112b11657973edde8655e)
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_lomac \
69	mac_mls \
70	mac_none \
71	mac_partition \
72	mac_seeotheruids \
73	mac_test \
74	mcd \
75	md \
76	mii \
77	mlx \
78	mpt \
79	msdosfs \
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	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	aic \
160	aout \
161	apm \
162	ar \
163	arcnet \
164	awi \
165	bktr \
166	coff \
167	ed \
168	em \
169	ep \
170	fe \
171	fpu \
172	gnufpu \
173	hea \
174	hfa \
175	ibcs2 \
176	linprocfs \
177	linux \
178	lnc \
179	ncv \
180	netgraph \
181	nsp \
182	oltr \
183	pccard \
184	pecoff \
185	ray \
186	sbni \
187	scsi_low \
188	smbfs \
189	sound \
190	splash \
191	sppp \
192	sr \
193	stg \
194	streams \
195	vinum \
196	wi \
197	xe
198
199.if ${MACHINE} == "i386"
200SUBDIR+=aac \
201	acpi \
202	asr \
203	atspeaker \
204	cardbus \
205	cbb \
206	ciss \
207	cm \
208	drm \
209	el \
210	exca \
211	iir \
212	mly \
213	s3 \
214	smapi \
215	vesa
216
217.elif ${MACHINE} == "pc98"
218SUBDIR+=canbepm \
219	canbus \
220	pcspeaker \
221	pmc \
222	snc
223.endif
224.endif
225
226.if ${MACHINE_ARCH} == "ia64"
227# Modules not enabled on ia64 (as compared to i386) include:
228#	aac acpi aout apm atspeaker drm fpu gnufpu ibcs2 linprocfs linux ncv
229#	nsp oltr pecoff s3 sbni stg vesa
230SUBDIR+=aic \
231	ar \
232	arcnet \
233	asr \
234	bktr \
235	cardbus \
236	cbb \
237	ciss \
238	cm \
239	coff \
240	el \
241	em \
242	ep \
243	exca \
244	fe \
245	hea \
246	hfa \
247	iir \
248	mly \
249	netgraph \
250	pccard \
251	ray \
252	rc \
253	scsi_low \
254	smbfs \
255	sound \
256	splash \
257	sppp \
258	sr \
259	streams \
260	vinum \
261	wi \
262	xe
263.endif
264
265.if ${MACHINE_ARCH} == "alpha"
266SUBDIR+=linprocfs \
267	linux \
268	osf1 \
269	sound \
270	sppp \
271	vinum
272.endif
273
274.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
275SUBDIR+=gem
276.endif
277
278.if ${MACHINE_ARCH} == "sparc64"
279SUBDIR+=hme
280.endif
281
282.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
283SUBDIR=${MODULES_OVERRIDE}
284.endif
285
286# Calling kldxref(8) for each module is expensive.
287.if !defined(NO_XREF)
288.MAKEFLAGS:=	${.MAKEFLAGS} -DNO_XREF
289afterinstall:
290	@if type kldxref >/dev/null 2>&1; then \
291		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
292		kldxref ${DESTDIR}${KMODDIR}; \
293	fi
294.endif
295
296.include <bsd.subdir.mk>
297