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