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