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