Makefile revision 123477
1# $FreeBSD: head/sys/modules/Makefile 123477 2003-12-11 23:06:54Z wpaul $
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	udf_iconv \
141	ufm \
142	uftdi \
143	ugen \
144	uhid \
145	ukbd \
146	ulpt \
147	umapfs \
148	umass \
149	umct \
150	umodem \
151	ums \
152	unionfs \
153	uplcom \
154	urio \
155	usb \
156	uscanner \
157	utopia \
158	uvisor \
159	uvscom \
160	vpo \
161	vr \
162	vx \
163	wb \
164	wlan \
165	xl
166
167.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "alpha"
168.if defined(WANT_EXT2FS_MODULE) || defined(ALL_MODULES)
169SUBDIR+=ext2fs
170.endif
171.endif
172
173.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
174SUBDIR+=ipfilter
175.endif
176
177.if ${MACHINE_ARCH} != "sparc64"
178SUBDIR+=syscons
179.endif
180
181# XXX some of these can move to the general case when de-i386'ed
182# XXX some of these can move now, but are untested on other architectures.
183.if ${MACHINE_ARCH} == "i386"
184SUBDIR+=3dfx \
185	agp \
186	aic \
187	amd \
188	aout \
189	apm \
190	ar \
191	arcnet \
192	ath_hal \
193	awi \
194	bktr \
195	coff \
196	drm \
197	ed \
198	elink \
199	em \
200	ep \
201	fe \
202	hfa \
203	i2c \
204	ibcs2 \
205	ie \
206	if_ndis \
207	linprocfs \
208	linux \
209	lnc \
210	ncp \
211	ncv \
212	ndis \
213	netgraph \
214	nsp \
215	nwfs \
216	oltr \
217	pccard \
218	pcfclock \
219	pecoff \
220	ray \
221	safe \
222	sbni \
223	scsi_low \
224	smbfs \
225	sound \
226	speaker \
227	splash \
228	sppp \
229	sr \
230	stg \
231	streams \
232	vinum \
233	wi \
234	xe
235
236.if ${MACHINE} == "i386"
237SUBDIR+=aac \
238	acpi \
239	asr \
240	bios \
241	cardbus \
242	cbb \
243	ciss \
244	cm \
245	dpt \
246	el \
247	ex \
248	exca \
249	idt \
250	iir \
251	ips \
252	mly \
253	s3 \
254	vesa
255
256.elif ${MACHINE} == "pc98"
257SUBDIR+=canbepm \
258	canbus \
259	pmc \
260	snc
261.endif
262.endif
263
264.if ${MACHINE_ARCH} == "ia64"
265# Modules not enabled on ia64 (as compared to i386) include:
266#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
267#	nsp oltr pecoff s3 sbni stg vesa
268SUBDIR+=aic \
269	ar \
270	arcnet \
271	asr \
272	bktr \
273	cardbus \
274	cbb \
275	ciss \
276	cm \
277	coff \
278	el \
279	em \
280	ep \
281	exca \
282	fe \
283	hfa \
284	iir \
285	mly \
286	netgraph \
287	pccard \
288	ray \
289	rc \
290	scsi_low \
291	smbfs \
292	sound \
293	splash \
294	sppp \
295	sr \
296	streams \
297	vinum \
298	wi \
299	xe
300.endif
301
302.if ${MACHINE_ARCH} == "alpha"
303SUBDIR+=agp \
304	linprocfs \
305	linux \
306	osf1 \
307	sound \
308	sppp \
309	vinum
310.endif
311
312.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
313SUBDIR+=gem
314.endif
315
316.if ${MACHINE_ARCH} == "sparc64"
317SUBDIR+=hme
318.endif
319
320.if defined(ALL_MODULES)
321SUBDIR+=null
322SUBDIR+=ufs
323.endif
324
325.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
326SUBDIR=${MODULES_OVERRIDE}
327.endif
328
329# pcic -- currently broken and being worked on out of tree.
330# oldcard -- specialized use for debugging only.
331# owi -- totally unsupported for debugging only.
332
333# Calling kldxref(8) for each module is expensive.
334.if !defined(NO_XREF)
335.MAKEFLAGS+=	-DNO_XREF
336afterinstall:
337	@if type kldxref >/dev/null 2>&1; then \
338		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
339		kldxref ${DESTDIR}${KMODDIR}; \
340	fi
341.endif
342
343.include <bsd.subdir.mk>
344