1# $FreeBSD: stable/10/sys/modules/Makefile 334096 2018-05-23 13:59:37Z emaste $
2
3.include <bsd.own.mk>
4
5SUBDIR_PARALLEL=
6
7# Modules that include binary-only blobs of microcode should be selectable by
8# MK_SOURCELESS_UCODE option (see below).
9
10SUBDIR=	\
11	${_3dfx} \
12	${_3dfx_linux} \
13	${_aac} \
14	${_aacraid} \
15	accf_data \
16	accf_dns \
17	accf_http \
18	acl_nfs4 \
19	acl_posix1e \
20	${_acpi} \
21	ae \
22	${_aesni} \
23	age \
24	${_agp} \
25	aha \
26	${_ahb} \
27	ahci \
28	${_aic} \
29	aic7xxx \
30	aio \
31	alc \
32	ale \
33	alq \
34	${_amdsbwd} \
35	${_amdtemp} \
36	amr \
37	${_an} \
38	${_aout} \
39	${_apm} \
40	${_arcmsr} \
41	${_arcnet} \
42	${_asmc} \
43	${_asr} \
44	ata \
45	ath \
46	ath_pci \
47	${_autofs} \
48	${_auxio} \
49	${_bce} \
50	bfe \
51	bge \
52	${_bxe} \
53	${_bios} \
54	${_bktr} \
55	${_bm} \
56	bridgestp \
57	bwi \
58	bwn \
59	cam \
60	${_canbepm} \
61	${_canbus} \
62	${_cardbus} \
63	${_carp} \
64	cas \
65	${_cbb} \
66	cc \
67	cd9660 \
68	cd9660_iconv \
69	${_ce} \
70	${_cfi} \
71	${_ciss} \
72	${_cm} \
73	${_cmx} \
74	${_coff} \
75	${_coretemp} \
76	${_cp} \
77	${_cpsw} \
78	${_cpuctl} \
79	${_cpufreq} \
80	${_crypto} \
81	${_cryptodev} \
82	${_cs} \
83	${_ct} \
84	${_ctau} \
85	ctl \
86	${_cxgb} \
87	${_cxgbe} \
88	dc \
89	dcons \
90	dcons_crom \
91	de \
92	${_dpms} \
93	${_dpt} \
94	${_drm} \
95	${_drm2} \
96	${_dtrace} \
97	dummynet \
98	${_ed} \
99	${_elink} \
100	${_em} \
101	en \
102	${_ep} \
103	${_epic} \
104	esp \
105	${_et} \
106	${_ex} \
107	${_exca} \
108	${_ext2fs} \
109	${_fatm} \
110	fdc \
111	fdescfs \
112	${_fe} \
113	filemon \
114	firewire \
115	firmware \
116	fuse \
117	${_fxp} \
118	gem \
119	geom \
120	${_glxiic} \
121	${_glxsb} \
122	hatm \
123	hifn \
124	hme \
125	${_hpt27xx} \
126	${_hptiop} \
127	${_hptmv} \
128	${_hptnr} \
129	${_hptrr} \
130	hwpmc \
131	${_hyperv} \
132	${_i2c} \
133        ${_ibcore} \
134	${_ibcs2} \
135	${_ichwd} \
136	${_ida} \
137	${_ie} \
138	if_bridge \
139	if_disc \
140	if_edsc \
141	if_ef \
142	if_epair \
143	if_faith \
144	${_if_gif} \
145	${_if_gre} \
146	${_if_me} \
147	if_lagg \
148	${_if_ndis} \
149	if_stf \
150	if_tap \
151	if_tun \
152	if_vlan \
153	if_vxlan \
154	${_igb} \
155	${_iir} \
156	${_imgact_binmisc} \
157	${_io} \
158	${_ioat} \
159        ${_ipoib} \
160	${_ipdivert} \
161	${_ipfilter} \
162	${_ipfw} \
163	ipfw_nat \
164	${_ipmi} \
165	ip6_mroute_mod \
166	ip_mroute_mod \
167	${_ips} \
168	${_ipw} \
169	${_ipwfw} \
170	${_isci} \
171	isp \
172	${_ispfw} \
173	${_iwi} \
174	${_iwifw} \
175	${_iwn} \
176	${_iwnfw} \
177	${_ix} \
178	${_ixv} \
179	${_ixgb} \
180	${_ixgbe} \
181	${_ixl} \
182	${_ixlv} \
183	jme \
184	joy \
185	kbdmux \
186	kgssapi \
187	kgssapi_krb5 \
188	khelp \
189	krpc \
190	ksyms \
191	le \
192	lge \
193	libalias \
194	libiconv \
195	libmbpool \
196	libmchain \
197	${_lindev} \
198	${_linprocfs} \
199	${_linsysfs} \
200	${_linux} \
201	${_linux_common} \
202	${_linux64} \
203	lmc \
204	lpt \
205	mac_biba \
206	mac_bsdextended \
207	mac_ifoff \
208	mac_lomac \
209	mac_mls \
210	mac_none \
211	mac_partition \
212	mac_portacl \
213	mac_seeotheruids \
214	mac_stub \
215	mac_test \
216	malo \
217	mcd \
218	md \
219	mem \
220	mfi \
221	mii \
222	mlx \
223	${_mlx4} \
224	${_mlx4ib} \
225	${_mlxen} \
226	${_mlx5} \
227	${_mlx5en} \
228	${_mlx5ib} \
229	${_mly} \
230	mmc \
231	mmcsd \
232	mpr \
233	mps \
234	mpt \
235	mqueue \
236	mrsas \
237	msdosfs \
238	msdosfs_iconv \
239	${_mse} \
240	msk \
241	${_mthca} \
242	mvs \
243	mwl \
244	${_mwlfw} \
245	mxge \
246	my \
247	${_nandfs} \
248	${_nandsim} \
249	${_ncp} \
250	${_ncv} \
251	${_ndis} \
252	netfpga10g \
253	${_netgraph} \
254	${_nfe} \
255	nfs_common \
256	nfscl \
257	nfsclient \
258	nfscommon \
259	nfsd \
260	nfslock \
261	nfslockd \
262	nfsserver \
263	nfssvc \
264	nge \
265	nmdm \
266	${_nsp} \
267	nullfs \
268	${_ntb} \
269	${_nvd} \
270	${_nve} \
271	${_nvme} \
272	${_nvram} \
273	${_nxge} \
274	${_opensolaris} \
275	oce \
276	${_padlock} \
277	patm \
278	${_pccard} \
279	${_pcfclock} \
280	pcn \
281	${_pf} \
282	${_pflog} \
283	${_pfsync} \
284	plip \
285	${_pmc} \
286	${_pms} \
287	ppbus \
288	ppc \
289	ppi \
290	pps \
291	procfs \
292	pseudofs \
293	${_pst} \
294	pty  \
295	puc \
296	${_qlxge} \
297	${_qlxgb} \
298	${_qlxgbe} \
299	${_qlnx} \
300	ral \
301	${_ralfw} \
302	${_random} \
303	rc4 \
304	${_rdma} \
305	re \
306	reiserfs \
307	rl \
308	${_s3} \
309	${_safe} \
310	${_sbni} \
311	scc \
312	scd \
313	${_scsi_low} \
314	sdhci \
315	${_sdhci_acpi} \
316	sdhci_pci \
317	sem \
318	send \
319	${_sf} \
320	${_sfxge} \
321	sge \
322	siba_bwn \
323	siftr \
324	siis \
325	sis \
326	sk \
327	${_smbfs} \
328	${_sn} \
329	${_snc} \
330	snp \
331	${_sound} \
332	${_speaker} \
333	${_splash} \
334	${_sppp} \
335	ste \
336	${_stg} \
337	stge \
338	${_streams} \
339	${_svr4} \
340	${_sym} \
341	${_syscons} \
342	sysvipc \
343	${_ti} \
344	tl \
345	tmpfs \
346	${_toecore} \
347	${_tpm} \
348	trm \
349	${_twa} \
350	twe \
351	tws \
352	tx \
353	${_txp} \
354	uart \
355	ubsec \
356	udf \
357	udf_iconv \
358	ufs \
359	unionfs \
360	usb \
361	utopia \
362	${_vesa} \
363	${_virtio} \
364	vge \
365	${_viawd} \
366	vkbd \
367	${_vmm} \
368	${_vmware} \
369	${_vpo} \
370	vr \
371	vte \
372	vx \
373	${_vxge} \
374	wb \
375	${_wbwd} \
376	${_wi} \
377	wlan \
378	wlan_acl \
379	wlan_amrr \
380	wlan_ccmp \
381	wlan_rssadapt \
382	wlan_tkip \
383	wlan_wep \
384	wlan_xauth \
385	${_wpi} \
386	${_wpifw} \
387	${_x86bios} \
388	${_xe} \
389	xl \
390	${_zfs} \
391	zlib \
392
393.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
394_imgact_binmisc=	imgact_binmisc
395_vmware=	vmware
396.endif
397
398.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
399	${MACHINE_CPUARCH} != "mips"
400_syscons=	syscons
401_vpo=		vpo
402.endif
403
404.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
405# no BUS_SPACE_UNSPECIFIED
406# No barrier instruction support (specific to this driver)
407_sym=		sym
408# intr_disable() is a macro, causes problems
409.if ${MK_SOURCELESS_UCODE} != "no"
410_cxgb=		cxgb
411.endif
412.endif
413
414.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
415	${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
416	${MACHINE_ARCH} != "powerpc"
417_cxgbe=		cxgbe
418.endif
419
420.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
421_autofs=	autofs
422.endif
423
424.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
425.if exists(${.CURDIR}/../opencrypto)
426_crypto=	crypto
427_cryptodev=	cryptodev
428.endif
429.if exists(${.CURDIR}/../crypto)
430_random=	random
431.endif
432.endif
433
434.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
435	defined(ALL_MODULES)
436_carp=	carp
437_toecore=	toecore
438_if_gif=	if_gif
439_if_gre=	if_gre
440.endif
441
442.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
443_if_me=		if_me
444.endif
445
446.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
447_ipfilter=	ipfilter
448.endif
449
450.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
451_ipdivert=	ipdivert
452_ipfw=		ipfw
453.endif
454
455.if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
456SUBDIR+=	iscsi
457SUBDIR+=	iscsi_initiator
458.endif
459
460.if ${MK_NAND} != "no" || defined(ALL_MODULES)
461_nandfs=	nandfs
462_nandsim=	nandsim
463.endif
464
465.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
466_netgraph=	netgraph
467.endif
468
469.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
470	${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
471_pf=		pf
472_pflog=		pflog
473.if ${MK_INET_SUPPORT} != "no"
474_pfsync=	pfsync
475.endif
476.endif
477
478.if ${MK_SOURCELESS_UCODE} != "no"
479_bce=		bce
480_fatm=		fatm
481_fxp=		fxp
482_ispfw=		ispfw
483_mwlfw=		mwlfw
484_ralfw=		ralfw
485_sf=		sf
486_sn=		sn
487_ti=		ti
488_txp=		txp
489.endif
490
491.if ${MACHINE_CPUARCH} == "i386"
492# XXX some of these can move to the general case when de-i386'ed
493# XXX some of these can move now, but are untested on other architectures.
494_3dfx=		3dfx
495_3dfx_linux=	3dfx_linux
496_agp=		agp
497_aic=		aic
498_an=		an
499_aout=		aout
500_apm=		apm
501_arcnet=	arcnet
502_bktr=		bktr
503.if ${MK_SOURCELESS_UCODE} != "no"
504_bxe=		bxe
505.endif
506_cardbus=	cardbus
507_cbb=		cbb
508.if ${MK_SOURCELESS_UCODE} != "no"
509_ce=		ce
510.endif
511_coff=		coff
512.if ${MK_SOURCELESS_UCODE} != "no"
513_cp=		cp
514.endif
515_cpuctl=	cpuctl
516_cpufreq=	cpufreq
517_cs=		cs
518_dpms=		dpms
519_drm=		drm
520_drm2=		drm2
521.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
522_dtrace=	dtrace
523.endif
524_ed=		ed
525_elink=		elink
526_em=		em
527_ep=		ep
528_et=		et
529_exca=		exca
530_ext2fs=	ext2fs
531_fe=		fe
532_glxiic=	glxiic
533_glxsb=		glxsb
534_i2c=		i2c
535.if ${MK_OFED} != "no" || defined(ALL_MODULES)
536_ibcore=        ibcore
537.endif
538_ibcs2=		ibcs2
539_ie=		ie
540_if_ndis=	if_ndis
541_igb=		igb
542_io=		io
543.if ${MK_OFED} != "no" || defined(ALL_MODULES)
544_ipoib=         ipoib
545.endif
546_lindev=	lindev
547_linprocfs=	linprocfs
548_linsysfs=	linsysfs
549_linux=		linux
550_mse=		mse
551.if ${MK_OFED} != "no" || defined(ALL_MODULES)
552_mlx4=		mlx4
553_mlx4ib=	mlx4ib
554_mlxen=		mlxen
555_mthca=		mthca
556.endif
557_mlx5=		mlx5
558.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
559	defined(ALL_MODULES)
560_mlx5en=	mlx5en
561.endif
562_ncv=		ncv
563_ndis=		ndis
564_nsp=		nsp
565.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
566_opensolaris=	opensolaris
567.endif
568_pccard=	pccard
569_pcfclock=	pcfclock
570_pst=		pst
571_rdma=		rdma
572_safe=		safe
573_sbni=		sbni
574_scsi_low=	scsi_low
575_smbfs=		smbfs
576_sound=		sound
577_speaker=	speaker
578_splash=	splash
579_sppp=		sppp
580_stg=		stg
581_streams=	streams
582_svr4=		svr4
583_vxge=  	vxge
584_wbwd=		wbwd
585_wi=		wi
586_xe=		xe
587.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
588_zfs=		zfs
589.endif
590.if ${MACHINE} == "i386"
591_aac=		aac
592_aacraid=	aacraid
593_acpi=		acpi
594.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
595_aesni=		aesni
596.endif
597_ahb=		ahb
598_amdsbwd=	amdsbwd
599_amdtemp=	amdtemp
600_arcmsr=	arcmsr
601_asmc=		asmc
602_asr=		asr
603_bios=		bios
604_ciss=		ciss
605_cm=		cm
606_cmx=		cmx
607_coretemp=	coretemp
608.if ${MK_SOURCELESS_UCODE} != "no"
609_ctau=		ctau
610.endif
611_dpt=		dpt
612_ex=		ex
613.if ${MK_SOURCELESS_HOST} != "no"
614_hpt27xx=	hpt27xx
615.endif
616_hptiop=	hptiop
617.if ${MK_SOURCELESS_HOST} != "no"
618_hptmv=		hptmv
619_hptnr=		hptnr
620_hptrr=		hptrr
621.endif
622_hyperv=	hyperv
623_ichwd=		ichwd
624_ida=		ida
625_iir=		iir
626_ipmi=		ipmi
627_ips=		ips
628_ipw=		ipw
629.if ${MK_SOURCELESS_UCODE} != "no"
630_ipwfw=		ipwfw
631.endif
632_isci=		isci
633_iwi=		iwi
634.if ${MK_SOURCELESS_UCODE} != "no"
635_iwifw=		iwifw
636.endif
637_iwn=		iwn
638.if ${MK_SOURCELESS_UCODE} != "no"
639_iwnfw=		iwnfw
640.endif
641_ix=		ix
642_ixv=		ixv
643_ixgb=		ixgb
644_ixgbe=		ixgbe
645_mly=		mly
646_nfe=		nfe
647_nvd=		nvd
648.if ${MK_SOURCELESS_HOST} != "no"
649_nve=		nve
650.endif
651_nvme=		nvme
652_nvram=		nvram
653_nxge=		nxge
654_tpm=		tpm
655_viawd=		viawd
656_wpi=		wpi
657.if ${MK_SOURCELESS_UCODE} != "no"
658_wpifw=		wpifw
659.endif
660.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
661_padlock=	padlock
662.endif
663_s3=		s3
664_sdhci_acpi=	sdhci_acpi
665_twa=		twa
666_vesa=		vesa
667_virtio=	virtio
668_x86bios=	x86bios
669.elif ${MACHINE} == "pc98"
670_canbepm=	canbepm
671_canbus=	canbus
672_ct=		ct
673_pmc=		pmc
674_snc=		snc
675.endif
676.endif
677
678.if ${MACHINE_CPUARCH} == "amd64"
679_aac=		aac
680_aacraid=	aacraid
681_aout=		aout
682_acpi=		acpi
683.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
684_aesni=		aesni
685.endif
686_agp=		agp
687_an=		an
688_amdsbwd=	amdsbwd
689_amdtemp=	amdtemp
690_arcmsr=	arcmsr
691_asmc=		asmc
692_bios=		bios
693_bktr=		bktr
694_bxe=		bxe
695_cardbus=	cardbus
696_cbb=		cbb
697_cmx=		cmx
698_ciss=		ciss
699_coretemp=	coretemp
700_cpuctl=	cpuctl
701_cpufreq=	cpufreq
702_dpms=		dpms
703_drm=		drm
704_drm2=		drm2
705.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
706_dtrace=	dtrace
707.endif
708_ed=		ed
709_et=		et
710_em=		em
711_exca=		exca
712_ext2fs=	ext2fs
713.if ${MK_SOURCELESS_HOST} != "no"
714_hpt27xx=	hpt27xx
715.endif
716_hptiop=	hptiop
717.if ${MK_SOURCELESS_HOST} != "no"
718_hptmv=		hptmv
719_hptnr=		hptnr
720_hptrr=		hptrr
721.endif
722_hyperv=	hyperv
723_i2c=		i2c
724.if ${MK_OFED} != "no" || defined(ALL_MODULES)
725_ibcore=        ibcore
726.endif
727_ichwd=		ichwd
728_ida=		ida
729_if_ndis=	if_ndis
730_igb=		igb
731_iir=		iir
732_io=		io
733_ioat=		ioat
734_ipmi=		ipmi
735.if ${MK_OFED} != "no" || defined(ALL_MODULES)
736_ipoib=         ipoib
737.endif
738_ips=		ips
739_ipw=		ipw
740.if ${MK_SOURCELESS_UCODE} != "no"
741_ipwfw=		ipwfw
742.endif
743_isci=		isci
744_iwi=		iwi
745.if ${MK_SOURCELESS_UCODE} != "no"
746_iwifw=		iwifw
747.endif
748_iwn=		iwn
749.if ${MK_SOURCELESS_UCODE} != "no"
750_iwnfw=		iwnfw
751.endif
752_ix=		ix
753_ixv=		ixv
754_ixgb=		ixgb
755_ixgbe=		ixgbe
756_ixl=		ixl
757_ixlv=		ixlv
758_lindev=	lindev
759_linprocfs=	linprocfs
760_linsysfs=	linsysfs
761_linux=		linux
762_linux64=	linux64
763_linux_common=	linux_common
764_mly=		mly
765.if ${MK_OFED} != "no" || defined(ALL_MODULES)
766_mlx4=		mlx4
767_mlx4ib=	mlx4ib
768_mlx5ib=	mlx5ib
769_mlxen=		mlxen
770_mthca=		mthca
771.endif
772_mlx5=		mlx5
773.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
774	defined(ALL_MODULES)
775_mlx5en=	mlx5en
776.endif
777_ndis=		ndis
778_nfe=		nfe
779_ntb=		ntb
780_nvd=		nvd
781.if ${MK_SOURCELESS_HOST} != "no"
782_nve=		nve
783.endif
784_nvme=		nvme
785_nvram=		nvram
786_nxge=		nxge
787.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
788_opensolaris=	opensolaris
789.endif
790.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
791_padlock=	padlock
792.endif
793_pccard=	pccard
794_pms=		pms
795_qlxge=		qlxge
796_qlxgb=		qlxgb
797.if ${MK_SOURCELESS_UCODE} != "no"
798_qlxgbe=	qlxgbe
799.endif
800_qlnx=		qlnx
801_rdma=		rdma
802_s3=		s3
803_safe=		safe
804_scsi_low=	scsi_low
805_sfxge=		sfxge
806_smbfs=		smbfs
807_sound=		sound
808_speaker=	speaker
809_splash=	splash
810_sppp=		sppp
811_tpm=		tpm
812_twa=		twa
813_vesa=		vesa
814_viawd=		viawd
815_virtio=	virtio
816.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
817_vmm=		vmm
818.endif
819_vxge=  	vxge
820_x86bios=	x86bios
821_wbwd=		wbwd
822_wi=		wi
823_wpi=		wpi
824.if ${MK_SOURCELESS_UCODE} != "no"
825_wpifw=		wpifw
826.endif
827.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
828_zfs=		zfs
829.endif
830.endif
831
832.if ${MACHINE_CPUARCH} == "arm"
833_cfi=		cfi
834_cpsw=		cpsw
835.endif
836
837.if ${MACHINE_CPUARCH} == "ia64"
838_aac=		aac
839_aacraid=	aacraid
840_aic=		aic
841_an=		an
842_arcnet=	arcnet
843_asr=		asr
844_bktr=		bktr
845_cardbus=	cardbus
846_cbb=		cbb
847_ciss=		ciss
848_cm=		cm
849_cmx=		cmx
850_coff=		coff
851_cpufreq=	cpufreq
852_dpt=		dpt
853_em=		em
854_ep=		ep
855_et=		et
856_exca=		exca
857_fe=		fe
858_hptiop=	hptiop
859_ida=		ida
860_igb=		igb
861_iir=		iir
862_ips=		ips
863_mly=		mly
864_pccard=	pccard
865_scsi_low=	scsi_low
866_smbfs=		smbfs
867_sound=		sound
868_splash=	splash
869_sppp=		sppp
870_streams=	streams
871_tpm=		tpm
872_twa=		twa
873_wi=		wi
874_xe=		xe
875.endif
876
877.if ${MACHINE_CPUARCH} == "powerpc"
878_agp=		agp
879_an=		an
880_bm=		bm
881_cardbus=	cardbus
882_cbb=		cbb
883_cfi=		cfi
884_cpufreq=	cpufreq
885_drm=		drm
886.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
887_dtrace=	dtrace
888.endif
889_exca=		exca
890_nvram=		powermac_nvram
891_pccard=	pccard
892_smbfs=		smbfs
893_sound=		sound
894.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
895_opensolaris=	opensolaris
896.endif
897_wi=		wi
898.endif
899
900.if ${MACHINE_ARCH} == "powerpc64"
901_drm2=		drm2
902_i2c=		i2c
903.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
904_zfs=		zfs
905.endif
906.endif
907
908.if ${MACHINE_CPUARCH} == "sparc64"
909_auxio=		auxio
910_em=		em
911_epic=		epic
912_i2c=		i2c
913_igb=		igb
914.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
915_opensolaris=	opensolaris
916.endif
917_smbfs=		smbfs
918_sound=		sound
919.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
920_zfs=		zfs
921.endif
922.endif
923
924.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
925SUBDIR=${MODULES_OVERRIDE}
926.endif
927
928SUBDIR+=${MODULES_EXTRA}
929
930.for reject in ${WITHOUT_MODULES}
931SUBDIR:= ${SUBDIR:N${reject}}
932.endfor
933
934# Calling kldxref(8) for each module is expensive.
935.if !defined(NO_XREF)
936.MAKEFLAGS+=	-DNO_XREF
937afterinstall:
938	@if type kldxref >/dev/null 2>&1; then \
939		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
940		kldxref ${DESTDIR}${KMODDIR}; \
941	fi
942.endif
943
944.include <bsd.subdir.mk>
945