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