Makefile revision 300661
1# $FreeBSD: stable/10/sys/modules/Makefile 300661 2016-05-25 07:09:54Z mav $
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	${_mly} \
229	mmc \
230	mmcsd \
231	mpr \
232	mps \
233	mpt \
234	mqueue \
235	mrsas \
236	msdosfs \
237	msdosfs_iconv \
238	${_mse} \
239	msk \
240	${_mthca} \
241	mvs \
242	mwl \
243	${_mwlfw} \
244	mxge \
245	my \
246	${_nandfs} \
247	${_nandsim} \
248	${_ncp} \
249	${_ncv} \
250	${_ndis} \
251	netfpga10g \
252	${_netgraph} \
253	${_nfe} \
254	nfs_common \
255	nfscl \
256	nfsclient \
257	nfscommon \
258	nfsd \
259	nfslock \
260	nfslockd \
261	nfsserver \
262	nfssvc \
263	nge \
264	nmdm \
265	${_nsp} \
266	nullfs \
267	${_ntb} \
268	${_nvd} \
269	${_nve} \
270	${_nvme} \
271	${_nvram} \
272	${_nxge} \
273	${_opensolaris} \
274	oce \
275	${_padlock} \
276	patm \
277	${_pccard} \
278	${_pcfclock} \
279	pcn \
280	${_pf} \
281	${_pflog} \
282	${_pfsync} \
283	plip \
284	${_pmc} \
285	${_pms} \
286	ppbus \
287	ppc \
288	ppi \
289	pps \
290	procfs \
291	pseudofs \
292	${_pst} \
293	pty  \
294	puc \
295	${_qlxge} \
296	${_qlxgb} \
297	${_qlxgbe} \
298	ral \
299	${_ralfw} \
300	${_random} \
301	rc4 \
302	${_rdma} \
303	re \
304	reiserfs \
305	rl \
306	${_s3} \
307	${_safe} \
308	${_sbni} \
309	scc \
310	scd \
311	${_scsi_low} \
312	sdhci \
313	sdhci_pci \
314	sem \
315	send \
316	${_sf} \
317	${_sfxge} \
318	sge \
319	siba_bwn \
320	siftr \
321	siis \
322	sis \
323	sk \
324	${_smbfs} \
325	${_sn} \
326	${_snc} \
327	snp \
328	${_sound} \
329	${_speaker} \
330	${_splash} \
331	${_sppp} \
332	ste \
333	${_stg} \
334	stge \
335	${_streams} \
336	${_svr4} \
337	${_sym} \
338	${_syscons} \
339	sysvipc \
340	${_ti} \
341	tl \
342	tmpfs \
343	${_toecore} \
344	${_tpm} \
345	trm \
346	${_twa} \
347	twe \
348	tws \
349	tx \
350	${_txp} \
351	uart \
352	ubsec \
353	udf \
354	udf_iconv \
355	ufs \
356	unionfs \
357	usb \
358	utopia \
359	${_vesa} \
360	${_virtio} \
361	vge \
362	${_viawd} \
363	vkbd \
364	${_vmm} \
365	${_vmware} \
366	${_vpo} \
367	vr \
368	vte \
369	vx \
370	${_vxge} \
371	wb \
372	${_wbwd} \
373	${_wi} \
374	wlan \
375	wlan_acl \
376	wlan_amrr \
377	wlan_ccmp \
378	wlan_rssadapt \
379	wlan_tkip \
380	wlan_wep \
381	wlan_xauth \
382	${_wpi} \
383	${_wpifw} \
384	${_x86bios} \
385	${_xe} \
386	xl \
387	${_zfs} \
388	zlib \
389
390.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
391_filemon=	filemon
392_imgact_binmisc=	imgact_binmisc
393_vmware=	vmware
394.endif
395
396.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
397	${MACHINE_CPUARCH} != "mips"
398_syscons=	syscons
399_vpo=		vpo
400.endif
401
402.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
403# no BUS_SPACE_UNSPECIFIED
404# No barrier instruction support (specific to this driver)
405_sym=		sym
406# intr_disable() is a macro, causes problems
407.if ${MK_SOURCELESS_UCODE} != "no"
408_cxgb=		cxgb
409.endif
410.endif
411
412.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
413	${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
414	${MACHINE_ARCH} != "powerpc"
415_cxgbe=		cxgbe
416.endif
417
418.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
419_autofs=	autofs
420.endif
421
422.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
423.if exists(${.CURDIR}/../opencrypto)
424_crypto=	crypto
425_cryptodev=	cryptodev
426.endif
427.if exists(${.CURDIR}/../crypto)
428_random=	random
429.endif
430.endif
431
432.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
433	defined(ALL_MODULES)
434_carp=	carp
435_toecore=	toecore
436_if_gif=	if_gif
437_if_gre=	if_gre
438.endif
439
440.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
441_if_me=		if_me
442.endif
443
444.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
445_ipfilter=	ipfilter
446.endif
447
448.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
449_ipdivert=	ipdivert
450_ipfw=		ipfw
451.endif
452
453.if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
454SUBDIR+=	iscsi
455SUBDIR+=	iscsi_initiator
456.endif
457
458.if ${MK_NAND} != "no" || defined(ALL_MODULES)
459_nandfs=	nandfs
460_nandsim=	nandsim
461.endif
462
463.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
464_netgraph=	netgraph
465.endif
466
467.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
468	${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
469_pf=		pf
470_pflog=		pflog
471.if ${MK_INET_SUPPORT} != "no"
472_pfsync=	pfsync
473.endif
474.endif
475
476.if ${MK_SOURCELESS_UCODE} != "no"
477_bce=		bce
478_fatm=		fatm
479_fxp=		fxp
480_ispfw=		ispfw
481_mwlfw=		mwlfw
482_ralfw=		ralfw
483_sf=		sf
484_sn=		sn
485_ti=		ti
486_txp=		txp
487.endif
488
489.if ${MACHINE_CPUARCH} == "i386"
490# XXX some of these can move to the general case when de-i386'ed
491# XXX some of these can move now, but are untested on other architectures.
492_3dfx=		3dfx
493_3dfx_linux=	3dfx_linux
494_agp=		agp
495_aic=		aic
496_an=		an
497_aout=		aout
498_apm=		apm
499_arcnet=	arcnet
500_bktr=		bktr
501_bxe=		bxe
502_cardbus=	cardbus
503_cbb=		cbb
504.if ${MK_SOURCELESS_UCODE} != "no"
505_ce=		ce
506.endif
507_coff=		coff
508.if ${MK_SOURCELESS_UCODE} != "no"
509_cp=		cp
510.endif
511_cpuctl=	cpuctl
512_cpufreq=	cpufreq
513_cs=		cs
514_dpms=		dpms
515_drm=		drm
516_drm2=		drm2
517.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
518_dtrace=	dtrace
519.endif
520_ed=		ed
521_elink=		elink
522_em=		em
523_ep=		ep
524_et=		et
525_exca=		exca
526_ext2fs=	ext2fs
527_fe=		fe
528_glxiic=	glxiic
529_glxsb=		glxsb
530_i2c=		i2c
531.if ${MK_OFED} != "no" || defined(ALL_MODULES)
532_ibcore=        ibcore
533.endif
534_ibcs2=		ibcs2
535_ie=		ie
536_if_ndis=	if_ndis
537_igb=		igb
538_io=		io
539.if ${MK_OFED} != "no" || defined(ALL_MODULES)
540_ipoib=         ipoib
541.endif
542_lindev=	lindev
543_linprocfs=	linprocfs
544_linsysfs=	linsysfs
545_linux=		linux
546_mse=		mse
547.if ${MK_OFED} != "no" || defined(ALL_MODULES)
548_mlx4=		mlx4
549_mlx4ib=	mlx4ib
550_mlxen=		mlxen
551_mthca=		mthca
552.endif
553_mlx5=		mlx5
554.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
555	defined(ALL_MODULES)
556_mlx5en=	mlx5en
557.endif
558_ncv=		ncv
559_ndis=		ndis
560_nsp=		nsp
561.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
562_opensolaris=	opensolaris
563.endif
564_pccard=	pccard
565_pcfclock=	pcfclock
566_pst=		pst
567_rdma=		rdma
568_safe=		safe
569_sbni=		sbni
570_scsi_low=	scsi_low
571_smbfs=		smbfs
572_sound=		sound
573_speaker=	speaker
574_splash=	splash
575_sppp=		sppp
576_stg=		stg
577_streams=	streams
578_svr4=		svr4
579_vxge=  	vxge
580_wbwd=		wbwd
581_wi=		wi
582_xe=		xe
583.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
584_zfs=		zfs
585.endif
586.if ${MACHINE} == "i386"
587_aac=		aac
588_aacraid=	aacraid
589_acpi=		acpi
590.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
591_aesni=		aesni
592.endif
593_ahb=		ahb
594_amdsbwd=	amdsbwd
595_amdtemp=	amdtemp
596_arcmsr=	arcmsr
597_asmc=		asmc
598_asr=		asr
599_bios=		bios
600_ciss=		ciss
601_cm=		cm
602_cmx=		cmx
603_coretemp=	coretemp
604.if ${MK_SOURCELESS_UCODE} != "no"
605_ctau=		ctau
606.endif
607_dpt=		dpt
608_ex=		ex
609.if ${MK_SOURCELESS_HOST} != "no"
610_hpt27xx=	hpt27xx
611.endif
612_hptiop=	hptiop
613.if ${MK_SOURCELESS_HOST} != "no"
614_hptmv=		hptmv
615_hptnr=		hptnr
616_hptrr=		hptrr
617.endif
618_hyperv=	hyperv
619_ichwd=		ichwd
620_ida=		ida
621_iir=		iir
622_ipmi=		ipmi
623_ips=		ips
624_ipw=		ipw
625.if ${MK_SOURCELESS_UCODE} != "no"
626_ipwfw=		ipwfw
627.endif
628_isci=		isci
629_iwi=		iwi
630.if ${MK_SOURCELESS_UCODE} != "no"
631_iwifw=		iwifw
632.endif
633_iwn=		iwn
634.if ${MK_SOURCELESS_UCODE} != "no"
635_iwnfw=		iwnfw
636.endif
637_ix=		ix
638_ixv=		ixv
639_ixgb=		ixgb
640_ixgbe=		ixgbe
641_mly=		mly
642_nfe=		nfe
643_nvd=		nvd
644.if ${MK_SOURCELESS_HOST} != "no"
645_nve=		nve
646.endif
647_nvme=		nvme
648_nvram=		nvram
649_nxge=		nxge
650_tpm=		tpm
651_viawd=		viawd
652_wpi=		wpi
653.if ${MK_SOURCELESS_UCODE} != "no"
654_wpifw=		wpifw
655.endif
656.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
657_padlock=	padlock
658.endif
659_s3=		s3
660_twa=		twa
661_vesa=		vesa
662_virtio=	virtio
663_x86bios=	x86bios
664.elif ${MACHINE} == "pc98"
665_canbepm=	canbepm
666_canbus=	canbus
667_ct=		ct
668_pmc=		pmc
669_snc=		snc
670.endif
671.endif
672
673.if ${MACHINE_CPUARCH} == "amd64"
674_aac=		aac
675_aacraid=	aacraid
676_aout=		aout
677_acpi=		acpi
678.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
679_aesni=		aesni
680.endif
681_agp=		agp
682_an=		an
683_amdsbwd=	amdsbwd
684_amdtemp=	amdtemp
685_arcmsr=	arcmsr
686_asmc=		asmc
687_bktr=		bktr
688_bxe=		bxe
689_cardbus=	cardbus
690_cbb=		cbb
691_cmx=		cmx
692_ciss=		ciss
693_coretemp=	coretemp
694_cpuctl=	cpuctl
695_cpufreq=	cpufreq
696_dpms=		dpms
697_drm=		drm
698_drm2=		drm2
699.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
700_dtrace=	dtrace
701.endif
702_ed=		ed
703_et=		et
704_em=		em
705_exca=		exca
706_ext2fs=	ext2fs
707.if ${MK_SOURCELESS_HOST} != "no"
708_hpt27xx=	hpt27xx
709.endif
710_hptiop=	hptiop
711.if ${MK_SOURCELESS_HOST} != "no"
712_hptmv=		hptmv
713_hptnr=		hptnr
714_hptrr=		hptrr
715.endif
716_hyperv=	hyperv
717_i2c=		i2c
718.if ${MK_OFED} != "no" || defined(ALL_MODULES)
719_ibcore=        ibcore
720.endif
721_ichwd=		ichwd
722_ida=		ida
723_if_ndis=	if_ndis
724_igb=		igb
725_iir=		iir
726_io=		io
727_ioat=		ioat
728_ipmi=		ipmi
729.if ${MK_OFED} != "no" || defined(ALL_MODULES)
730_ipoib=         ipoib
731.endif
732_ips=		ips
733_ipw=		ipw
734.if ${MK_SOURCELESS_UCODE} != "no"
735_ipwfw=		ipwfw
736.endif
737_isci=		isci
738_iwi=		iwi
739.if ${MK_SOURCELESS_UCODE} != "no"
740_iwifw=		iwifw
741.endif
742_iwn=		iwn
743.if ${MK_SOURCELESS_UCODE} != "no"
744_iwnfw=		iwnfw
745.endif
746_ix=		ix
747_ixv=		ixv
748_ixgb=		ixgb
749_ixgbe=		ixgbe
750_ixl=		ixl
751_ixlv=		ixlv
752_lindev=	lindev
753_linprocfs=	linprocfs
754_linsysfs=	linsysfs
755_linux=		linux
756_linux64=	linux64
757_linux_common=	linux_common
758_mly=		mly
759.if ${MK_OFED} != "no" || defined(ALL_MODULES)
760_mlx4=		mlx4
761_mlx4ib=	mlx4ib
762_mlxen=		mlxen
763_mthca=		mthca
764.endif
765_mlx5=		mlx5
766.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
767	defined(ALL_MODULES)
768_mlx5en=	mlx5en
769.endif
770_ndis=		ndis
771_nfe=		nfe
772_ntb=		ntb
773_nvd=		nvd
774.if ${MK_SOURCELESS_HOST} != "no"
775_nve=		nve
776.endif
777_nvme=		nvme
778_nvram=		nvram
779_nxge=		nxge
780.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
781_opensolaris=	opensolaris
782.endif
783.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
784_padlock=	padlock
785.endif
786_pccard=	pccard
787_pms=		pms
788_qlxge=		qlxge
789_qlxgb=		qlxgb
790_qlxgbe=	qlxgbe
791_rdma=		rdma
792_s3=		s3
793_safe=		safe
794_scsi_low=	scsi_low
795_sfxge=		sfxge
796_smbfs=		smbfs
797_sound=		sound
798_speaker=	speaker
799_splash=	splash
800_sppp=		sppp
801_tpm=		tpm
802_twa=		twa
803_vesa=		vesa
804_viawd=		viawd
805_virtio=	virtio
806.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
807_vmm=		vmm
808.endif
809_vxge=  	vxge
810_x86bios=	x86bios
811_wbwd=		wbwd
812_wi=		wi
813_wpi=		wpi
814.if ${MK_SOURCELESS_UCODE} != "no"
815_wpifw=		wpifw
816.endif
817.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
818_zfs=		zfs
819.endif
820.endif
821
822.if ${MACHINE_CPUARCH} == "arm"
823_cfi=		cfi
824_cpsw=		cpsw
825.endif
826
827.if ${MACHINE_CPUARCH} == "ia64"
828_aac=		aac
829_aacraid=	aacraid
830_aic=		aic
831_an=		an
832_arcnet=	arcnet
833_asr=		asr
834_bktr=		bktr
835_cardbus=	cardbus
836_cbb=		cbb
837_ciss=		ciss
838_cm=		cm
839_cmx=		cmx
840_coff=		coff
841_cpufreq=	cpufreq
842_dpt=		dpt
843_em=		em
844_ep=		ep
845_et=		et
846_exca=		exca
847_fe=		fe
848_hptiop=	hptiop
849_ida=		ida
850_igb=		igb
851_iir=		iir
852_ips=		ips
853_mly=		mly
854_pccard=	pccard
855_scsi_low=	scsi_low
856_smbfs=		smbfs
857_sound=		sound
858_splash=	splash
859_sppp=		sppp
860_streams=	streams
861_tpm=		tpm
862_twa=		twa
863_wi=		wi
864_xe=		xe
865.endif
866
867.if ${MACHINE_CPUARCH} == "powerpc"
868_agp=		agp
869_an=		an
870_bm=		bm
871_cardbus=	cardbus
872_cbb=		cbb
873_cfi=		cfi
874_cpufreq=	cpufreq
875_drm=		drm
876.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
877_dtrace=	dtrace
878.endif
879_exca=		exca
880_nvram=		powermac_nvram
881_pccard=	pccard
882_smbfs=		smbfs
883_sound=		sound
884.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
885_opensolaris=	opensolaris
886.endif
887_wi=		wi
888.endif
889
890.if ${MACHINE_ARCH} == "powerpc64"
891_drm2=		drm2
892_i2c=		i2c
893.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
894_zfs=		zfs
895.endif
896.endif
897
898.if ${MACHINE_CPUARCH} == "sparc64"
899_auxio=		auxio
900_em=		em
901_epic=		epic
902_i2c=		i2c
903_igb=		igb
904.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
905_opensolaris=	opensolaris
906.endif
907_smbfs=		smbfs
908_sound=		sound
909.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
910_zfs=		zfs
911.endif
912.endif
913
914.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
915SUBDIR=${MODULES_OVERRIDE}
916.endif
917
918SUBDIR+=${MODULES_EXTRA}
919
920.for reject in ${WITHOUT_MODULES}
921SUBDIR:= ${SUBDIR:N${reject}}
922.endfor
923
924# Calling kldxref(8) for each module is expensive.
925.if !defined(NO_XREF)
926.MAKEFLAGS+=	-DNO_XREF
927afterinstall:
928	@if type kldxref >/dev/null 2>&1; then \
929		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
930		kldxref ${DESTDIR}${KMODDIR}; \
931	fi
932.endif
933
934.include <bsd.subdir.mk>
935