xref: /freebsd/sys/modules/Makefile (revision 41466b50c1d5bfd1cf6adaae547a579a75d7c04e)
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	fdescfs \
28	fdc \
29	fs \
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	libmchain \
51	lnc \
52	md \
53	mii \
54	mlx \
55	msdosfs \
56	nfsclient \
57	nfsserver \
58	nge \
59	nmdm \
60	ntfs \
61	nullfs \
62	pcn \
63	portalfs \
64	procfs \
65	${_random} \
66	rl \
67	rp \
68	sf \
69	sis \
70	sk \
71	sn \
72	snp \
73	sound \
74	sppp \
75	ste \
76	sym \
77	syscons \
78	sysvipc \
79	ti \
80	tl \
81	twe \
82	tx \
83	txp \
84	udbp \
85	ugen \
86	uhid \
87	ukbd \
88	ulpt \
89	umapfs \
90	umass \
91	umodem \
92	ums \
93	unionfs \
94	urio \
95	usb \
96	uscanner \
97	vinum \
98	vpo \
99	vr \
100	vx \
101	wb \
102	xl
103
104#removed while KSE settles in:
105#	ncp \
106#	nwfs \
107# XXX some of these can move to the general case when de-i386'ed
108.if ${MACHINE_ARCH} == "i386"
109SUBDIR+=aac \
110	acpi \
111	aic \
112	ar \
113	apm \
114	asr \
115	atspeaker \
116	bktr \
117	coff \
118	el \
119	fe \
120	fpu \
121	gnufpu \
122	ibcs2 \
123	linux \
124	mly \
125	netgraph \
126	oltr \
127	pecoff \
128	ray \
129	s3 \
130	splash \
131	sr \
132	streams \
133	vesa \
134	wi
135.endif
136#removed while KSE settles in:
137#	smbfs \
138
139.if ${MACHINE} == "pc98"
140SUBDIR+=pmc \
141	snc
142.endif
143
144.if ${MACHINE_ARCH} == "alpha"
145SUBDIR+=linux \
146	osf1
147.endif
148
149.if defined(WANT_EXT2FS_MODULE)
150SUBDIR+=ext2fs
151.endif
152
153.if defined(MODULES_OVERRIDE)
154SUBDIR=${MODULES_OVERRIDE}
155.endif
156
157# Calling kldxref(8) for each module is expensive.
158.if !defined(NO_XREF)
159.MAKEFLAGS:=	${.MAKEFLAGS} -DNO_XREF
160afterinstall:
161	-kldxref ${DESTDIR}${KMODDIR}
162.endif
163
164.include <bsd.subdir.mk>
165