xref: /freebsd/sys/modules/Makefile (revision 5bba2114d0aeb3adc36f08ea8c5a0712f29c2e76)
1# $FreeBSD$
2
3SUBDIR=	${_3dfx} \
4	${_aac} \
5	accf_data \
6	accf_http \
7	${_acpi} \
8	${_agp} \
9	aha \
10	${_ahb} \
11	${_aic} \
12	aic7xxx \
13	aio \
14	${_amd} \
15	amr \
16	an \
17	${_aout} \
18	${_apm} \
19	${_ar} \
20	${_arcmsr} \
21	${_arcnet} \
22	${_arl} \
23	${_asr} \
24	ata \
25	ath \
26	${_ath_hal} \
27	ath_rate_amrr \
28	ath_rate_onoe \
29	ath_rate_sample \
30	aue \
31	${_auxio} \
32	${_awi} \
33	axe \
34	bfe \
35	bge \
36	${_bios} \
37	${_bktr} \
38	cam \
39	${_canbepm} \
40	${_canbus} \
41	${_cardbus} \
42	${_cbb} \
43	cd9660 \
44	cd9660_iconv \
45	cdce \
46	${_ce} \
47	${_ciss} \
48	${_cm} \
49	coda \
50	coda5 \
51	${_coff} \
52	${_cp} \
53	${_cpufreq} \
54	${_crypto} \
55	${_cryptodev} \
56	${_cs} \
57	${_ctau} \
58	cue \
59	${_cx} \
60	dc \
61	dcons \
62	dcons_crom \
63	de \
64	${_digi} \
65	${_dpt} \
66	${_drm} \
67	dummynet \
68	${_ed} \
69	${_elink} \
70	${_em} \
71	en \
72	${_ep} \
73	${_ex} \
74	${_exca} \
75	${_ext2fs} \
76	fatm \
77	fdc \
78	fdescfs \
79	${_fe} \
80	firewire \
81	firmware \
82	fxp \
83	${_gem} \
84	geom \
85	harp \
86	hatm \
87	${_hfa} \
88	hifn \
89	hme \
90	${_hptmv} \
91	hwpmc \
92	${_i2c} \
93	${_ibcs2} \
94	${_ichwd} \
95	${_ida} \
96	${_idt} \
97	${_ie} \
98	if_bridge \
99	if_disc \
100	if_ef \
101	if_faith \
102	if_gif \
103	if_gre \
104	${_if_ndis} \
105	if_ppp \
106	if_sl \
107	if_stf \
108	if_tap \
109	if_tun \
110	if_vlan \
111	${_iir} \
112	${_io} \
113	ip6fw \
114	ipdivert \
115	${_ipfilter} \
116	ipfw \
117	ip_mroute_mod \
118	${_ips} \
119	ipw \
120	isp \
121	ispfw \
122	iwi \
123	joy \
124	kbdmux \
125	kue \
126	le \
127	lge \
128	libalias \
129	libiconv \
130	libmbpool \
131	libmchain \
132	${_linprocfs} \
133	${_linux} \
134	lmc \
135	${_lnc} \
136	lpt \
137	mac_biba \
138	mac_bsdextended \
139	mac_ifoff \
140	mac_lomac \
141	mac_mls \
142	mac_none \
143	mac_partition \
144	mac_portacl \
145	mac_seeotheruids \
146	mac_stub \
147	mac_test \
148	mcd \
149	md \
150	mem \
151	mii \
152	mlx \
153	${_mly} \
154	mpt \
155	mqueue \
156	msdosfs \
157	msdosfs_iconv \
158	${_mse} \
159	my \
160	${_ncp} \
161	${_ncv} \
162	${_ndis} \
163	netgraph \
164	nfsclient \
165	nfsserver \
166	nge \
167	nmdm \
168	${_nsp} \
169	ntfs \
170	ntfs_iconv \
171	nullfs \
172	${_nve} \
173	${_nwfs} \
174	${_oltr} \
175	${_osf1} \
176	${_padlock} \
177	patm \
178	${_pccard} \
179	${_pcfclock} \
180	pcn \
181	${_pecoff} \
182	${_pf} \
183	${_pflog} \
184	plip \
185	${_pmc} \
186	portalfs \
187	ppbus \
188	ppi \
189	pps \
190	procfs \
191	pseudofs \
192	${_pst} \
193	${_puc} \
194	ral \
195	${_random} \
196	${_ray} \
197	rc \
198	rc4 \
199	re \
200	reiserfs \
201	rl \
202	rp \
203	rue \
204	${_s3} \
205	${_safe} \
206	${_sbni} \
207	sbsh \
208	scd \
209	${_scsi_low} \
210	sf \
211	${_sio} \
212	sis \
213	sk \
214	${_smbfs} \
215	sn \
216	${_snc} \
217	snp \
218	${_sound} \
219	${_speaker} \
220	${_splash} \
221	${_sppp} \
222	${_sr} \
223	ste \
224	${_stg} \
225	${_streams} \
226	sym \
227	${_syscons} \
228	sysvipc \
229	ti \
230	tl \
231	trm \
232	${_twa} \
233	twe \
234	tx \
235	txp \
236	${_uart} \
237	ubsa \
238	ubsec \
239	ubser \
240	ucom \
241	ucycom \
242	udav \
243	udbp \
244	udf \
245	udf_iconv \
246	ufm \
247	${_ufs} \
248	ufoma \
249	uftdi \
250	ugen \
251	uhid \
252	ukbd \
253	ulpt \
254	umass \
255	umct \
256	umodem \
257	ums \
258	unionfs \
259	uplcom \
260	ural \
261	urio \
262	usb \
263	uscanner \
264	utopia \
265	uvisor \
266	uvscom \
267	${_vesa} \
268	vge \
269	vkbd \
270	${_vpo} \
271	vr \
272	vx \
273	wb \
274	${_wi} \
275	wlan \
276	wlan_acl \
277	wlan_ccmp \
278	wlan_tkip \
279	wlan_wep \
280	wlan_xauth \
281	${_xe} \
282	xfs \
283	xl
284
285.if ${MACHINE_ARCH} != "powerpc"
286_syscons=	syscons
287_uart=		uart
288_vpo=		vpo
289.endif
290
291.if defined(ALL_MODULES)
292_ufs=		ufs
293.endif
294
295.if !defined(NO_CRYPT) || defined(ALL_MODULES)
296.if exists(${.CURDIR}/../opencrypto)
297_crypto=	crypto
298_cryptodev=	cryptodev
299.endif
300.if exists(${.CURDIR}/../crypto)
301_random=	random
302.endif
303.endif
304
305.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
306_ipfilter=	ipfilter
307.endif
308
309.if !defined(NO_PF) || defined(ALL_MODULES)
310_pf=		pf
311_pflog=		pflog
312.endif
313
314.if ${MACHINE_ARCH} == "i386"
315# XXX some of these can move to the general case when de-i386'ed
316# XXX some of these can move now, but are untested on other architectures.
317_3dfx=		3dfx
318_agp=		agp
319_aic=		aic
320_amd=		amd
321_aout=		aout
322_apm=		apm
323_ar=		ar
324_arcnet=	arcnet
325_ath_hal=	ath_hal
326_awi=		awi
327_bktr=		bktr
328_cardbus=	cardbus
329_cbb=		cbb
330_ce=		ce
331_coff=		coff
332_cp=		cp
333_cpufreq=	cpufreq
334_cs=		cs
335_digi=		digi
336_drm=		drm
337_ed=		ed
338_elink=		elink
339_em=		em
340_ep=		ep
341_exca=		exca
342_ext2fs=	ext2fs
343_fe=		fe
344_hfa=		hfa
345_i2c=		i2c
346_ibcs2=		ibcs2
347_ie=		ie
348_if_ndis=	if_ndis
349_io=		io
350_linprocfs=	linprocfs
351_linux=		linux
352_lnc=		lnc
353_mse=		mse
354_ncp=		ncp
355_ncv=		ncv
356_ndis=		ndis
357_nsp=		nsp
358_nwfs=		nwfs
359_oltr=		oltr
360_pccard=	pccard
361_pcfclock=	pcfclock
362_pecoff=	pecoff
363_pst=		pst
364_puc=		puc
365_ray=		ray
366_safe=		safe
367_sbni=		sbni
368_scsi_low=	scsi_low
369_sio=		sio
370_smbfs=		smbfs
371_sound=		sound
372_speaker=	speaker
373_splash=	splash
374_sppp=		sppp
375_sr=		sr
376_stg=		stg
377_streams=	streams
378_wi=		wi
379_xe=		xe
380.if ${MACHINE} == "i386"
381_aac=		aac
382_acpi=		acpi
383_ahb=		ahb
384_arcmsr=	arcmsr
385_arl=		arl
386_asr=		asr
387_bios=		bios
388_ciss=		ciss
389_cm=		cm
390_ctau=		ctau
391_cx=		cx
392_dpt=		dpt
393_ex=		ex
394_hptmv=		hptmv
395_ichwd=		ichwd
396_ida=		ida
397_idt=		idt
398_iir=		iir
399_ips=		ips
400_mly=		mly
401_nve=		nve
402.if !defined(NO_CRYPT) || defined(ALL_MODULES)
403.if exists(${.CURDIR}/../crypto/via)
404_padlock=	padlock
405.endif
406.endif
407_s3=		s3
408_twa=		twa
409_vesa=		vesa
410.elif ${MACHINE} == "pc98"
411_canbepm=	canbepm
412_canbus=	canbus
413_pmc=		pmc
414_snc=		snc
415.endif
416.endif
417
418.if ${MACHINE_ARCH} == "alpha"
419_agp=		agp
420_ahb=		ahb
421_ext2fs=	ext2fs
422_linprocfs=	linprocfs
423_linux=		linux
424_osf1=		osf1
425_sound=		sound
426_sppp=		sppp
427.endif
428
429.if ${MACHINE_ARCH} == "amd64"
430_aac=		aac
431#_acpi=		acpi		# doesn't work on amd64 yet
432_agp=		agp
433_arcmsr=	arcmsr
434_ath_hal=	ath_hal
435_ciss=		ciss
436_cpufreq=	cpufreq
437_digi=		digi
438_drm=		drm
439_ed=		ed
440_em=		em
441_ext2fs=	ext2fs
442_hptmv=		hptmv
443_i2c=		i2c
444_ichwd=		ichwd
445_ida=		ida
446_if_ndis=	if_ndis
447_iir=		iir
448_io=		io
449_ips=		ips
450#_lnc=		lnc
451_mly=		mly
452_ndis=		ndis
453_nve=		nve
454_safe=		safe
455_scsi_low=	scsi_low
456_smbfs=		smbfs
457_sound=		sound
458_speaker=	speaker
459_sppp=		sppp
460_twa=		twa
461.endif
462
463.if ${MACHINE_ARCH} == "ia64"
464# Modules not enabled on ia64 (as compared to i386) include:
465#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
466#	nsp oltr pecoff s3 sbni stg vesa
467# acpi is not enabled because it is broken as a module on ia64
468_aic=		aic
469#_ar=		ar	not 64-bit clean
470_arcnet=	arcnet
471_asr=		asr
472_bktr=		bktr
473_cardbus=	cardbus
474_cbb=		cbb
475_ciss=		ciss
476_cm=		cm
477_coff=		coff
478_cpufreq=	cpufreq
479_em=		em
480_ep=		ep
481_exca=		exca
482_fe=		fe
483_hfa=		hfa
484_iir=		iir
485_mly=		mly
486_pccard=	pccard
487_scsi_low=	scsi_low
488_smbfs=		smbfs
489_sound=		sound
490_splash=	splash
491_sppp=		sppp
492#_sr=		sr		not 64bit clean
493_streams=	streams
494_wi=		wi
495_xe=		xe
496.endif
497
498.if ${MACHINE_ARCH} == "powerpc"
499_gem=		gem
500_smbfs=		smbfs
501.endif
502
503.if ${MACHINE_ARCH} == "sparc64"
504_auxio=		auxio
505_em=		em
506_gem=		gem
507_i2c=		i2c
508_sound=		sound
509.endif
510
511.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
512SUBDIR=${MODULES_OVERRIDE}
513.endif
514
515.for reject in ${WITHOUT_MODULES}
516SUBDIR:= ${SUBDIR:N${reject}}
517.endfor
518
519# Calling kldxref(8) for each module is expensive.
520.if !defined(NO_XREF)
521.MAKEFLAGS+=	-DNO_XREF
522afterinstall:
523	@if type kldxref >/dev/null 2>&1; then \
524		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
525		kldxref ${DESTDIR}${KMODDIR}; \
526	fi
527.endif
528
529.include <bsd.subdir.mk>
530