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