xref: /freebsd/sys/modules/Makefile (revision c8fa8e25d77016f36e63790f2ceccb90613ccb2e)
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	geom \
39	gx \
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	uvisor \
137	uvscom \
138	vpo \
139	vr \
140	vx \
141	wb \
142	wlan \
143	xl
144
145.if defined(WANT_EXT2FS_MODULE)
146SUBDIR+=ext2fs
147.endif
148
149.if !defined(NO_IPFILTER)
150SUBDIR+=ipfilter
151.endif
152
153.if ${MACHINE_ARCH} != "sparc64"
154SUBDIR+=syscons
155.endif
156
157# XXX some of these can move to the general case when de-i386'ed
158# XXX some of these can move now, but are untested on other architectures.
159.if ${MACHINE_ARCH} == "i386"
160SUBDIR+=3dfx \
161	agp \
162	aic \
163	aout \
164	apm \
165	ar \
166	arcnet \
167	awi \
168	bktr \
169	coff \
170	drm \
171	ed \
172	elink \
173	em \
174	ep \
175	fe \
176	fpu \
177	gnufpu \
178	hea \
179	hfa \
180	ibcs2 \
181	ie \
182	linprocfs \
183	linux \
184	lnc \
185	ncp \
186	ncv \
187	netgraph \
188	nsp \
189	nwfs \
190	oltr \
191	pccard \
192	pecoff \
193	ray \
194	sbni \
195	scsi_low \
196	smbfs \
197	sound \
198	speaker \
199	splash \
200	sppp \
201	sr \
202	stg \
203	streams \
204	vinum \
205	wi \
206	xe
207
208.if ${MACHINE} == "i386"
209SUBDIR+=aac \
210	acpi \
211	asr \
212	bios \
213	cardbus \
214	cbb \
215	ciss \
216	cm \
217	dpt \
218	el \
219	ex \
220	exca \
221	idt \
222	iir \
223	ips \
224	mly \
225	s3 \
226	vesa
227
228.elif ${MACHINE} == "pc98"
229SUBDIR+=canbepm \
230	canbus \
231	pmc \
232	snc
233.endif
234.endif
235
236.if ${MACHINE_ARCH} == "ia64"
237# Modules not enabled on ia64 (as compared to i386) include:
238#	aac acpi aout apm atspeaker drm fpu gnufpu ibcs2 linprocfs linux ncv
239#	nsp oltr pecoff s3 sbni stg vesa
240SUBDIR+=aic \
241	ar \
242	arcnet \
243	asr \
244	bktr \
245	cardbus \
246	cbb \
247	ciss \
248	cm \
249	coff \
250	el \
251	em \
252	ep \
253	exca \
254	fe \
255	hea \
256	hfa \
257	iir \
258	mly \
259	netgraph \
260	pccard \
261	ray \
262	rc \
263	scsi_low \
264	smbfs \
265	sound \
266	splash \
267	sppp \
268	sr \
269	streams \
270	vinum \
271	wi \
272	xe
273.endif
274
275.if ${MACHINE_ARCH} == "alpha"
276SUBDIR+=agp \
277	linprocfs \
278	linux \
279	osf1 \
280	sound \
281	sppp \
282	vinum
283.endif
284
285.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
286SUBDIR+=gem
287.endif
288
289.if ${MACHINE_ARCH} == "sparc64"
290SUBDIR+=hme
291.endif
292
293.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
294SUBDIR=${MODULES_OVERRIDE}
295.endif
296
297# Calling kldxref(8) for each module is expensive.
298.if !defined(NO_XREF)
299.MAKEFLAGS+=	-DNO_XREF
300afterinstall:
301	@if type kldxref >/dev/null 2>&1; then \
302		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
303		kldxref ${DESTDIR}${KMODDIR}; \
304	fi
305.endif
306
307.include <bsd.subdir.mk>
308