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