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