Makefile revision 111771
1# $FreeBSD: head/sys/modules/Makefile 111771 2003-03-02 23:01:42Z rwatson $
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	bge \
20	bridge \
21	cam \
22	ccd \
23	cd9660 \
24	coda \
25	${_crypto} \
26	${_cryptodev} \
27	cue \
28	dc \
29	de \
30	digi \
31	dummynet \
32	fdc \
33	fdescfs \
34	firewire \
35	fxp \
36	gx \
37	hifn \
38	if_disc \
39	if_ef \
40	if_faith \
41	if_gif \
42	if_gre \
43	if_ppp \
44	if_sl \
45	if_stf \
46	if_tap \
47	if_tun \
48	if_vlan \
49	ip6fw \
50	ip_mroute_mod \
51	ipfw \
52	isp \
53	ispfw \
54	joy \
55	kue \
56	lge \
57	libiconv \
58	libmchain \
59	lpt \
60	mac_biba \
61	mac_bsdextended \
62	mac_ifoff \
63	mac_lomac \
64	mac_mls \
65	mac_none \
66	mac_partition \
67	mac_portacl \
68	mac_seeotheruids \
69	mac_test \
70	mcd \
71	md \
72	mii \
73	mlx \
74	mpt \
75	msdosfs \
76	my \
77	nfsclient \
78	nfsserver \
79	nge \
80	nmdm \
81	ntfs \
82	nullfs \
83	pcn \
84	plip \
85	portalfs \
86	ppbus \
87	ppi \
88	pps \
89	procfs \
90	pseudofs \
91	raidframe \
92	${_random} \
93	rc \
94	rc4 \
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	wlan \
138	xl
139
140.if defined(WANT_EXT2FS_MODULE)
141SUBDIR+=ext2fs
142.endif
143
144.if !defined(NO_IPFILTER)
145SUBDIR+=ipfilter
146.endif
147
148.if ${MACHINE_ARCH} != "sparc64"
149SUBDIR+=syscons
150.endif
151
152# XXX some of these can move to the general case when de-i386'ed
153# XXX some of these can move now, but are untested on other architectures.
154.if ${MACHINE_ARCH} == "i386"
155SUBDIR+=3dfx \
156	agp \
157	aic \
158	aout \
159	apm \
160	ar \
161	arcnet \
162	awi \
163	bktr \
164	coff \
165	ed \
166	em \
167	ep \
168	fe \
169	fpu \
170	gnufpu \
171	hea \
172	hfa \
173	ibcs2 \
174	linprocfs \
175	linux \
176	lnc \
177	ncp \
178	ncv \
179	netgraph \
180	nsp \
181	nwfs \
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+=agp \
267	linprocfs \
268	linux \
269	osf1 \
270	sound \
271	sppp \
272	vinum
273.endif
274
275.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
276SUBDIR+=gem
277.endif
278
279.if ${MACHINE_ARCH} == "sparc64"
280SUBDIR+=hme
281.endif
282
283.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
284SUBDIR=${MODULES_OVERRIDE}
285.endif
286
287# Calling kldxref(8) for each module is expensive.
288.if !defined(NO_XREF)
289.MAKEFLAGS:=	${.MAKEFLAGS} -DNO_XREF
290afterinstall:
291	@if type kldxref >/dev/null 2>&1; then \
292		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
293		kldxref ${DESTDIR}${KMODDIR}; \
294	fi
295.endif
296
297.include <bsd.subdir.mk>
298