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