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