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