xref: /freebsd/sys/modules/Makefile (revision c4f6a2a9e1b1879b618c436ab4f56ff75c73a0f5)
1# $FreeBSD$
2
3.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT)
4_random=	random
5.endif
6
7SUBDIR=	3dfx \
8	accf_data \
9	accf_http \
10	agp \
11	aha \
12	aio \
13	amr \
14	an \
15	aue \
16	bge \
17	bridge \
18	ccd \
19	coda \
20	cue \
21	dc \
22	de \
23	digi \
24	dummynet \
25	ed \
26	fdescfs \
27	fdc \
28	fxp \
29	gx \
30	if_disc \
31	if_ef \
32	if_gif \
33	if_faith \
34	if_ppp \
35	if_sl \
36	if_stf \
37	if_tap \
38	if_tun \
39	if_vlan \
40	ip6fw \
41	ip_mroute_mod \
42	ipfw \
43	ispfw \
44	joy \
45	kue \
46	lge \
47	libiconv \
48	libmchain \
49	lnc \
50	lpt \
51	mac_biba \
52	mac_bsdextended \
53	mac_ifoff \
54	mac_mls \
55	mac_none \
56	mac_seeotheruids \
57	mac_test \
58	md \
59	mii \
60	mlx \
61	msdosfs \
62	nfsclient \
63	nfsserver \
64	nge \
65	nmdm \
66	ntfs \
67	nullfs \
68	pcn \
69	plip \
70	portalfs \
71	ppbus \
72	ppi \
73	pps \
74	procfs \
75	pseudofs \
76	${_random} \
77	rl \
78	rp \
79	sf \
80	sis \
81	sk \
82	sn \
83	snp \
84	ste \
85	sym \
86	syscons \
87	sysvipc \
88	ti \
89	tl \
90	twe \
91	tx \
92	txp \
93	ucom \
94	udbp \
95	ufm \
96	udf \
97	uftdi \
98	ugen \
99	uhid \
100	ukbd \
101	ulpt \
102	umapfs \
103	umass \
104	umodem \
105	ums \
106	unionfs \
107	uplcom \
108	urio \
109	usb \
110	uscanner \
111	uvisor \
112	uvscom \
113	vpo \
114	vr \
115	vx \
116	wb \
117	xl
118
119.if !defined(NO_IPFILTER) && ${MACHINE_ARCH} != "ia64"
120SUBDIR+=ipfilter
121.endif
122
123#removed while KSE settles in:
124#	ncp \
125#	nwfs \
126# XXX some of these can move to the general case when de-i386'ed
127.if ${MACHINE_ARCH} == "i386"
128SUBDIR+=aac \
129	acpi \
130	aic \
131	ar \
132	arcnet \
133	apm \
134	asr \
135	atspeaker \
136	bktr \
137	cam \
138	cd9660 \
139	ciss \
140	cm \
141	coff \
142	drm \
143	el \
144	em \
145	fe \
146	fpu \
147	gnufpu \
148	hea \
149	hfa \
150	ibcs2 \
151	iir \
152	linprocfs \
153	linux \
154	lomac \
155	ncv \
156	nsp \
157	mly \
158	netgraph \
159	oltr \
160	pecoff \
161	ray \
162	s3 \
163	sbni \
164	scsi_low \
165	smbfs \
166	sound \
167	splash \
168	sppp \
169	sr \
170	stg \
171	streams \
172	vesa \
173	vinum \
174	wi \
175	xe
176.endif
177
178.if ${MACHINE_ARCH} == "ia64"
179SUBDIR+=aic \
180	arcnet \
181	ciss \
182	cm \
183	coff \
184	el \
185	em \
186	fe \
187	iir \
188	mly \
189	ray \
190	scsi_low \
191	smbfs \
192	splash \
193	sr \
194	streams \
195	wi \
196	xe
197.endif
198
199.if ${MACHINE} == "pc98"
200SUBDIR+=pmc \
201	snc
202.endif
203
204.if ${MACHINE_ARCH} == "alpha"
205SUBDIR+=cam \
206	cd9660 \
207	linprocfs \
208	linux \
209	lomac \
210	osf1 \
211	sound \
212	sppp \
213	vinum
214.endif
215
216.if defined(WANT_EXT2FS_MODULE)
217SUBDIR+=ext2fs
218.endif
219
220.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
221SUBDIR=${MODULES_OVERRIDE}
222.endif
223
224# Calling kldxref(8) for each module is expensive.
225.if !defined(NO_XREF)
226.MAKEFLAGS:=	${.MAKEFLAGS} -DNO_XREF
227afterinstall:
228	@if type kldxref >/dev/null 2>&1; then \
229		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
230		kldxref ${DESTDIR}${KMODDIR}; \
231	fi
232.endif
233
234.include <bsd.subdir.mk>
235