xref: /freebsd/sys/modules/Makefile (revision 3e2c971172f16c3dbf180df5c63b16ed56ff2cdd)
1# $FreeBSD$
2
3# pcic -- currently broken and being worked on out of tree.
4# oldcard -- specialized use for debugging only.
5# owi -- totally unsupported for debugging only.
6
7SUBDIR=	${_3dfx} \
8	${_aac} \
9	accf_data \
10	accf_http \
11	${_acpi} \
12	${_agp} \
13	aha \
14	${_aic} \
15	aic7xxx \
16	aio \
17	${_amd} \
18	amr \
19	an \
20	${_aout} \
21	${_apm} \
22	${_ar} \
23	${_arcnet} \
24	${_asr} \
25	ath \
26	${_ath_hal} \
27	aue \
28	${_awi} \
29	axe \
30	bfe \
31	bge \
32	${_bios} \
33	${_bktr} \
34	bridge \
35	cam \
36	${_canbepm} \
37	${_canbus} \
38	${_cardbus} \
39	${_cbb} \
40	cd9660 \
41	cd9660_iconv \
42	${_ciss} \
43	${_cm} \
44	coda \
45	coda5 \
46	${_coff} \
47	${_crypto} \
48	${_cryptodev} \
49	cue \
50	${_cx} \
51	dc \
52	dcons \
53	dcons_crom \
54	de \
55	digi \
56	${_dpt} \
57	${_drm} \
58	dummynet \
59	${_ed} \
60	${_el} \
61	${_elink} \
62	${_em} \
63	en \
64	${_ep} \
65	${_ex} \
66	${_exca} \
67	${_ext2fs} \
68	fatm \
69	fdc \
70	fdescfs \
71	${_fe} \
72	firewire \
73	fxp \
74	${_gem} \
75	geom \
76	gx \
77	harp \
78	hatm \
79	${_hfa} \
80	hifn \
81	${_hme} \
82	${_i2c} \
83	${_ibcs2} \
84	${_ida} \
85	${_idt} \
86	${_ie} \
87	if_disc \
88	if_ef \
89	if_faith \
90	if_gif \
91	if_gre \
92	if_ppp \
93	if_sl \
94	if_stf \
95	if_tap \
96	if_tun \
97	if_vlan \
98	${_iir} \
99	ip6fw \
100	${_ipfilter} \
101	ipfw \
102	ip_mroute_mod \
103	${_ips} \
104	isp \
105	ispfw \
106	joy \
107	kue \
108	lge \
109	libiconv \
110	libmbpool \
111	libmchain \
112	${_linprocfs} \
113	${_linux} \
114	${_lnc} \
115	lpt \
116	mac_biba \
117	mac_bsdextended \
118	mac_ifoff \
119	mac_lomac \
120	mac_mls \
121	mac_none \
122	mac_partition \
123	mac_portacl \
124	mac_seeotheruids \
125	mac_stub \
126	mac_test \
127	mcd \
128	md \
129	mii \
130	mlx \
131	${_mly} \
132	mpt \
133	msdosfs \
134	msdosfs_iconv \
135	my \
136	${_ncp} \
137	${_ncv} \
138	${_ndis} \
139	${_netgraph} \
140	nfsclient \
141	nfsserver \
142	nge \
143	nmdm \
144	${_nsp} \
145	ntfs \
146	ntfs_iconv \
147	${_null} \
148	nullfs \
149	${_nwfs} \
150	${_oltr} \
151	${_osf1} \
152	patm \
153	${_pccard} \
154	${_pcfclock} \
155	pcn \
156	${_pecoff} \
157	plip \
158	${_pmc} \
159	portalfs \
160	ppbus \
161	ppi \
162	pps \
163	procfs \
164	pseudofs \
165	pst \
166	raidframe \
167	${_random} \
168	${_ray} \
169	rc \
170	rc4 \
171	re \
172	rl \
173	rp \
174	rue \
175	${_s3} \
176	${_safe} \
177	${_sbni} \
178	sbsh \
179	scd \
180	${_scsi_low} \
181	sf \
182	sis \
183	sk \
184	${_smbfs} \
185	sn \
186	${_snc} \
187	snp \
188	${_sound} \
189	${_speaker} \
190	${_splash} \
191	${_sppp} \
192	${_sr} \
193	ste \
194	${_stg} \
195	${_streams} \
196	sym \
197	${_syscons} \
198	sysvipc \
199	ti \
200	tl \
201	trm \
202	twe \
203	tx \
204	txp \
205	uart \
206	ubsa \
207	ubsec \
208	ucom \
209	udav \
210	udbp \
211	udf \
212	udf_iconv \
213	ufm \
214	${_ufs} \
215	uftdi \
216	ugen \
217	uhid \
218	ukbd \
219	ulpt \
220	umapfs \
221	umass \
222	umct \
223	umodem \
224	ums \
225	unionfs \
226	uplcom \
227	urio \
228	usb \
229	uscanner \
230	utopia \
231	uvisor \
232	uvscom \
233	${_vesa} \
234	${_vinum} \
235	vpo \
236	vr \
237	vx \
238	wb \
239	${_wi} \
240	wlan \
241	${_xe} \
242	xl
243
244.if ${MACHINE_ARCH} != "sparc64"
245_syscons=	syscons
246.endif
247
248.if defined(ALL_MODULES)
249_null=		null
250_ufs=		ufs
251.endif
252
253.if !defined(NOCRYPT) || defined(ALL_MODULES)
254.if exists(${.CURDIR}/../opencrypto)
255_crypto=	crypto
256_cryptodev=	cryptodev
257.endif
258.if exists(${.CURDIR}/../crypto)
259_random=	random
260.endif
261.endif
262
263.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
264_ipfilter=	ipfilter
265.endif
266
267.if ${MACHINE_ARCH} == "i386"
268# XXX some of these can move to the general case when de-i386'ed
269# XXX some of these can move now, but are untested on other architectures.
270_3dfx=		3dfx
271_agp=		agp
272_aic=		aic
273_amd=		amd
274_aout=		aout
275_apm=		apm
276_ar=		ar
277_arcnet=	arcnet
278_ath_hal=	ath_hal
279_awi=		awi
280_bktr=		bktr
281_coff=		coff
282_drm=		drm
283_ed=		ed
284_elink=		elink
285_em=		em
286_ep=		ep
287_ext2fs=	ext2fs
288_fe=		fe
289_hfa=		hfa
290_i2c=		i2c
291_ibcs2=		ibcs2
292_ie=		ie
293_linprocfs=	linprocfs
294_linux=		linux
295_lnc=		lnc
296_ncp=		ncp
297_ncv=		ncv
298_ndis=		ndis
299_netgraph=	netgraph
300_nsp=		nsp
301_nwfs=		nwfs
302_oltr=		oltr
303_pccard=	pccard
304_pcfclock=	pcfclock
305_pecoff=	pecoff
306_ray=		ray
307_safe=		safe
308_sbni=		sbni
309_scsi_low=	scsi_low
310_smbfs=		smbfs
311_sound=		sound
312_speaker=	speaker
313_splash=	splash
314_sppp=		sppp
315_sr=		sr
316_stg=		stg
317_streams=	streams
318_vinum=		vinum
319_wi=		wi
320_xe=		xe
321.if ${MACHINE} == "i386"
322_aac=		aac
323_acpi=		acpi
324_asr=		asr
325_bios=		bios
326_cardbus=	cardbus
327_cbb=		cbb
328_ciss=		ciss
329_cm=		cm
330_cx=		cx
331_dpt=		dpt
332_el=		el
333_ex=		ex
334_exca=		exca
335_ida=		ida
336_idt=		idt
337_iir=		iir
338_ips=		ips
339_mly=		mly
340_s3=		s3
341_vesa=		vesa
342.elif ${MACHINE} == "pc98"
343_canbepm=	canbepm
344_canbus=	canbus
345_pmc=		pmc
346_snc=		snc
347.endif
348.endif
349
350.if ${MACHINE_ARCH} == "alpha"
351_agp=		agp
352_ext2fs=	ext2fs
353_linprocfs=	linprocfs
354_linux=		linux
355_osf1=		osf1
356_sound=		sound
357_sppp=		sppp
358_vinum=		vinum
359.endif
360
361.if ${MACHINE_ARCH} == "amd64"
362_ndis=		ndis
363.endif
364
365.if ${MACHINE_ARCH} == "ia64"
366# Modules not enabled on ia64 (as compared to i386) include:
367#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
368#	nsp oltr pecoff s3 sbni stg vesa
369_aic=		aic
370_ar=		ar
371_arcnet=	arcnet
372_asr=		asr
373_bktr=		bktr
374_cardbus=	cardbus
375_cbb=		cbb
376_ciss=		ciss
377_cm=		cm
378_coff=		coff
379_el=		el
380_em=		em
381_ep=		ep
382_exca=		exca
383_fe=		fe
384_hfa=		hfa
385_iir=		iir
386_mly=		mly
387_netgraph=	netgraph
388_pccard=	pccard
389_ray=		ray
390_scsi_low=	scsi_low
391_smbfs=		smbfs
392_sound=		sound
393_splash=	splash
394_sppp=		sppp
395_sr=		sr
396_streams=	streams
397_vinum=		vinum
398_wi=		wi
399_xe=		xe
400.endif
401
402.if ${MACHINE_ARCH} == "powerpc"
403_gem=		gem
404.endif
405
406.if ${MACHINE_ARCH} == "sparc64"
407_gem=		gem
408_hme=		hme
409.endif
410
411.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
412SUBDIR=${MODULES_OVERRIDE}
413.endif
414
415# Calling kldxref(8) for each module is expensive.
416.if !defined(NO_XREF)
417.MAKEFLAGS+=	-DNO_XREF
418afterinstall:
419	@if type kldxref >/dev/null 2>&1; then \
420		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
421		kldxref ${DESTDIR}${KMODDIR}; \
422	fi
423.endif
424
425.include <bsd.subdir.mk>
426