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