Makefile revision 323223
1# $FreeBSD: stable/10/sys/modules/Makefile 323223 2017-09-06 15:33:23Z hselasky $
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_bxe=		bxe
504_cardbus=	cardbus
505_cbb=		cbb
506.if ${MK_SOURCELESS_UCODE} != "no"
507_ce=		ce
508.endif
509_coff=		coff
510.if ${MK_SOURCELESS_UCODE} != "no"
511_cp=		cp
512.endif
513_cpuctl=	cpuctl
514_cpufreq=	cpufreq
515_cs=		cs
516_dpms=		dpms
517_drm=		drm
518_drm2=		drm2
519.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
520_dtrace=	dtrace
521.endif
522_ed=		ed
523_elink=		elink
524_em=		em
525_ep=		ep
526_et=		et
527_exca=		exca
528_ext2fs=	ext2fs
529_fe=		fe
530_glxiic=	glxiic
531_glxsb=		glxsb
532_i2c=		i2c
533.if ${MK_OFED} != "no" || defined(ALL_MODULES)
534_ibcore=        ibcore
535.endif
536_ibcs2=		ibcs2
537_ie=		ie
538_if_ndis=	if_ndis
539_igb=		igb
540_io=		io
541.if ${MK_OFED} != "no" || defined(ALL_MODULES)
542_ipoib=         ipoib
543.endif
544_lindev=	lindev
545_linprocfs=	linprocfs
546_linsysfs=	linsysfs
547_linux=		linux
548_mse=		mse
549.if ${MK_OFED} != "no" || defined(ALL_MODULES)
550_mlx4=		mlx4
551_mlx4ib=	mlx4ib
552_mlxen=		mlxen
553_mthca=		mthca
554.endif
555_mlx5=		mlx5
556.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
557	defined(ALL_MODULES)
558_mlx5en=	mlx5en
559.endif
560_ncv=		ncv
561_ndis=		ndis
562_nsp=		nsp
563.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
564_opensolaris=	opensolaris
565.endif
566_pccard=	pccard
567_pcfclock=	pcfclock
568_pst=		pst
569_rdma=		rdma
570_safe=		safe
571_sbni=		sbni
572_scsi_low=	scsi_low
573_smbfs=		smbfs
574_sound=		sound
575_speaker=	speaker
576_splash=	splash
577_sppp=		sppp
578_stg=		stg
579_streams=	streams
580_svr4=		svr4
581_vxge=  	vxge
582_wbwd=		wbwd
583_wi=		wi
584_xe=		xe
585.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
586_zfs=		zfs
587.endif
588.if ${MACHINE} == "i386"
589_aac=		aac
590_aacraid=	aacraid
591_acpi=		acpi
592.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
593_aesni=		aesni
594.endif
595_ahb=		ahb
596_amdsbwd=	amdsbwd
597_amdtemp=	amdtemp
598_arcmsr=	arcmsr
599_asmc=		asmc
600_asr=		asr
601_bios=		bios
602_ciss=		ciss
603_cm=		cm
604_cmx=		cmx
605_coretemp=	coretemp
606.if ${MK_SOURCELESS_UCODE} != "no"
607_ctau=		ctau
608.endif
609_dpt=		dpt
610_ex=		ex
611.if ${MK_SOURCELESS_HOST} != "no"
612_hpt27xx=	hpt27xx
613.endif
614_hptiop=	hptiop
615.if ${MK_SOURCELESS_HOST} != "no"
616_hptmv=		hptmv
617_hptnr=		hptnr
618_hptrr=		hptrr
619.endif
620_hyperv=	hyperv
621_ichwd=		ichwd
622_ida=		ida
623_iir=		iir
624_ipmi=		ipmi
625_ips=		ips
626_ipw=		ipw
627.if ${MK_SOURCELESS_UCODE} != "no"
628_ipwfw=		ipwfw
629.endif
630_isci=		isci
631_iwi=		iwi
632.if ${MK_SOURCELESS_UCODE} != "no"
633_iwifw=		iwifw
634.endif
635_iwn=		iwn
636.if ${MK_SOURCELESS_UCODE} != "no"
637_iwnfw=		iwnfw
638.endif
639_ix=		ix
640_ixv=		ixv
641_ixgb=		ixgb
642_ixgbe=		ixgbe
643_mly=		mly
644_nfe=		nfe
645_nvd=		nvd
646.if ${MK_SOURCELESS_HOST} != "no"
647_nve=		nve
648.endif
649_nvme=		nvme
650_nvram=		nvram
651_nxge=		nxge
652_tpm=		tpm
653_viawd=		viawd
654_wpi=		wpi
655.if ${MK_SOURCELESS_UCODE} != "no"
656_wpifw=		wpifw
657.endif
658.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
659_padlock=	padlock
660.endif
661_s3=		s3
662_sdhci_acpi=	sdhci_acpi
663_twa=		twa
664_vesa=		vesa
665_virtio=	virtio
666_x86bios=	x86bios
667.elif ${MACHINE} == "pc98"
668_canbepm=	canbepm
669_canbus=	canbus
670_ct=		ct
671_pmc=		pmc
672_snc=		snc
673.endif
674.endif
675
676.if ${MACHINE_CPUARCH} == "amd64"
677_aac=		aac
678_aacraid=	aacraid
679_aout=		aout
680_acpi=		acpi
681.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
682_aesni=		aesni
683.endif
684_agp=		agp
685_an=		an
686_amdsbwd=	amdsbwd
687_amdtemp=	amdtemp
688_arcmsr=	arcmsr
689_asmc=		asmc
690_bios=		bios
691_bktr=		bktr
692_bxe=		bxe
693_cardbus=	cardbus
694_cbb=		cbb
695_cmx=		cmx
696_ciss=		ciss
697_coretemp=	coretemp
698_cpuctl=	cpuctl
699_cpufreq=	cpufreq
700_dpms=		dpms
701_drm=		drm
702_drm2=		drm2
703.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
704_dtrace=	dtrace
705.endif
706_ed=		ed
707_et=		et
708_em=		em
709_exca=		exca
710_ext2fs=	ext2fs
711.if ${MK_SOURCELESS_HOST} != "no"
712_hpt27xx=	hpt27xx
713.endif
714_hptiop=	hptiop
715.if ${MK_SOURCELESS_HOST} != "no"
716_hptmv=		hptmv
717_hptnr=		hptnr
718_hptrr=		hptrr
719.endif
720_hyperv=	hyperv
721_i2c=		i2c
722.if ${MK_OFED} != "no" || defined(ALL_MODULES)
723_ibcore=        ibcore
724.endif
725_ichwd=		ichwd
726_ida=		ida
727_if_ndis=	if_ndis
728_igb=		igb
729_iir=		iir
730_io=		io
731_ioat=		ioat
732_ipmi=		ipmi
733.if ${MK_OFED} != "no" || defined(ALL_MODULES)
734_ipoib=         ipoib
735.endif
736_ips=		ips
737_ipw=		ipw
738.if ${MK_SOURCELESS_UCODE} != "no"
739_ipwfw=		ipwfw
740.endif
741_isci=		isci
742_iwi=		iwi
743.if ${MK_SOURCELESS_UCODE} != "no"
744_iwifw=		iwifw
745.endif
746_iwn=		iwn
747.if ${MK_SOURCELESS_UCODE} != "no"
748_iwnfw=		iwnfw
749.endif
750_ix=		ix
751_ixv=		ixv
752_ixgb=		ixgb
753_ixgbe=		ixgbe
754_ixl=		ixl
755_ixlv=		ixlv
756_lindev=	lindev
757_linprocfs=	linprocfs
758_linsysfs=	linsysfs
759_linux=		linux
760_linux64=	linux64
761_linux_common=	linux_common
762_mly=		mly
763.if ${MK_OFED} != "no" || defined(ALL_MODULES)
764_mlx4=		mlx4
765_mlx4ib=	mlx4ib
766_mlx5ib=	mlx5ib
767_mlxen=		mlxen
768_mthca=		mthca
769.endif
770_mlx5=		mlx5
771.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
772	defined(ALL_MODULES)
773_mlx5en=	mlx5en
774.endif
775_ndis=		ndis
776_nfe=		nfe
777_ntb=		ntb
778_nvd=		nvd
779.if ${MK_SOURCELESS_HOST} != "no"
780_nve=		nve
781.endif
782_nvme=		nvme
783_nvram=		nvram
784_nxge=		nxge
785.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
786_opensolaris=	opensolaris
787.endif
788.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
789_padlock=	padlock
790.endif
791_pccard=	pccard
792_pms=		pms
793_qlxge=		qlxge
794_qlxgb=		qlxgb
795_qlxgbe=	qlxgbe
796_qlnx=		qlnx
797_rdma=		rdma
798_s3=		s3
799_safe=		safe
800_scsi_low=	scsi_low
801_sfxge=		sfxge
802_smbfs=		smbfs
803_sound=		sound
804_speaker=	speaker
805_splash=	splash
806_sppp=		sppp
807_tpm=		tpm
808_twa=		twa
809_vesa=		vesa
810_viawd=		viawd
811_virtio=	virtio
812.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
813_vmm=		vmm
814.endif
815_vxge=  	vxge
816_x86bios=	x86bios
817_wbwd=		wbwd
818_wi=		wi
819_wpi=		wpi
820.if ${MK_SOURCELESS_UCODE} != "no"
821_wpifw=		wpifw
822.endif
823.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
824_zfs=		zfs
825.endif
826.endif
827
828.if ${MACHINE_CPUARCH} == "arm"
829_cfi=		cfi
830_cpsw=		cpsw
831.endif
832
833.if ${MACHINE_CPUARCH} == "ia64"
834_aac=		aac
835_aacraid=	aacraid
836_aic=		aic
837_an=		an
838_arcnet=	arcnet
839_asr=		asr
840_bktr=		bktr
841_cardbus=	cardbus
842_cbb=		cbb
843_ciss=		ciss
844_cm=		cm
845_cmx=		cmx
846_coff=		coff
847_cpufreq=	cpufreq
848_dpt=		dpt
849_em=		em
850_ep=		ep
851_et=		et
852_exca=		exca
853_fe=		fe
854_hptiop=	hptiop
855_ida=		ida
856_igb=		igb
857_iir=		iir
858_ips=		ips
859_mly=		mly
860_pccard=	pccard
861_scsi_low=	scsi_low
862_smbfs=		smbfs
863_sound=		sound
864_splash=	splash
865_sppp=		sppp
866_streams=	streams
867_tpm=		tpm
868_twa=		twa
869_wi=		wi
870_xe=		xe
871.endif
872
873.if ${MACHINE_CPUARCH} == "powerpc"
874_agp=		agp
875_an=		an
876_bm=		bm
877_cardbus=	cardbus
878_cbb=		cbb
879_cfi=		cfi
880_cpufreq=	cpufreq
881_drm=		drm
882.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
883_dtrace=	dtrace
884.endif
885_exca=		exca
886_nvram=		powermac_nvram
887_pccard=	pccard
888_smbfs=		smbfs
889_sound=		sound
890.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
891_opensolaris=	opensolaris
892.endif
893_wi=		wi
894.endif
895
896.if ${MACHINE_ARCH} == "powerpc64"
897_drm2=		drm2
898_i2c=		i2c
899.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
900_zfs=		zfs
901.endif
902.endif
903
904.if ${MACHINE_CPUARCH} == "sparc64"
905_auxio=		auxio
906_em=		em
907_epic=		epic
908_i2c=		i2c
909_igb=		igb
910.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
911_opensolaris=	opensolaris
912.endif
913_smbfs=		smbfs
914_sound=		sound
915.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
916_zfs=		zfs
917.endif
918.endif
919
920.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
921SUBDIR=${MODULES_OVERRIDE}
922.endif
923
924SUBDIR+=${MODULES_EXTRA}
925
926.for reject in ${WITHOUT_MODULES}
927SUBDIR:= ${SUBDIR:N${reject}}
928.endfor
929
930# Calling kldxref(8) for each module is expensive.
931.if !defined(NO_XREF)
932.MAKEFLAGS+=	-DNO_XREF
933afterinstall:
934	@if type kldxref >/dev/null 2>&1; then \
935		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
936		kldxref ${DESTDIR}${KMODDIR}; \
937	fi
938.endif
939
940.include <bsd.subdir.mk>
941