xref: /freebsd/sys/modules/Makefile (revision adeb92a24c57f97d5cd3c3c45be239cbb23aed68)
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	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	libiconv \
52	libmchain \
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	${_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	em \
128	fe \
129	fpu \
130	gnufpu \
131	ibcs2 \
132	linux \
133	ncv \
134	nsp \
135	mly \
136	netgraph \
137	oltr \
138	pecoff \
139	ray \
140	s3 \
141	sbni \
142	scsi_low \
143	smbfs \
144	splash \
145	sr \
146	stg \
147	streams \
148	vesa \
149	wi
150.endif
151
152.if ${MACHINE} == "pc98"
153SUBDIR+=pmc \
154	snc
155.endif
156
157.if ${MACHINE_ARCH} == "alpha"
158SUBDIR+=linux \
159	osf1
160.endif
161
162.if defined(WANT_EXT2FS_MODULE)
163SUBDIR+=ext2fs
164.endif
165
166.if defined(MODULES_OVERRIDE)
167SUBDIR=${MODULES_OVERRIDE}
168.endif
169
170# Calling kldxref(8) for each module is expensive.
171.if !defined(NO_XREF)
172.MAKEFLAGS:=	${.MAKEFLAGS} -DNO_XREF
173afterinstall:
174	-kldxref ${DESTDIR}${KMODDIR}
175.endif
176
177.include <bsd.subdir.mk>
178