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