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