xref: /freebsd/sys/modules/Makefile (revision 1f88aa09417f1cfb3929fd37531b1ab51213c2d6)
1# $FreeBSD$
2
3SYSDIR?=${SRCTOP}/sys
4.include "${SYSDIR}/conf/kern.opts.mk"
5
6SUBDIR_PARALLEL=
7
8# Modules that include binary-only blobs of microcode should be selectable by
9# MK_SOURCELESS_UCODE option (see below).
10
11.include "${SYSDIR}/conf/config.mk"
12
13.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
14SUBDIR=${MODULES_OVERRIDE}
15.else
16SUBDIR=	\
17	${_3dfx} \
18	${_3dfx_linux} \
19	${_aac} \
20	${_aacraid} \
21	accf_data \
22	accf_dns \
23	accf_http \
24	acl_nfs4 \
25	acl_posix1e \
26	${_acpi} \
27	ae \
28	${_aesni} \
29	age \
30	${_agp} \
31	ahci \
32	aic7xxx \
33	alc \
34	ale \
35	alq \
36	${_amd_ecc_inject} \
37	${_amdgpio} \
38	${_amdsbwd} \
39	${_amdsmn} \
40	${_amdtemp} \
41	amr \
42	${_aout} \
43	${_arcmsr} \
44	${_allwinner} \
45	${_armv8crypto} \
46	${_asmc} \
47	ata \
48	ath \
49	ath_dfs \
50	ath_hal \
51	ath_hal_ar5210 \
52	ath_hal_ar5211 \
53	ath_hal_ar5212 \
54	ath_hal_ar5416 \
55	ath_hal_ar9300 \
56	ath_main \
57	ath_rate \
58	ath_pci \
59	${_autofs} \
60	axgbe \
61	backlight \
62	${_bce} \
63	${_bcm283x_clkman} \
64	${_bcm283x_pwm} \
65	bfe \
66	bge \
67	bhnd \
68	${_bxe} \
69	${_bios} \
70	${_blake2} \
71	bnxt \
72	bridgestp \
73	bwi \
74	bwn \
75	${_bytgpio} \
76	${_chvgpio} \
77	cam \
78	${_cardbus} \
79	${_carp} \
80	cas \
81	${_cbb} \
82	cc \
83	${_ccp} \
84	cd9660 \
85	cd9660_iconv \
86	${_ce} \
87	${_cfi} \
88	${_chromebook_platform} \
89	${_ciss} \
90	cloudabi \
91	${_cloudabi32} \
92	${_cloudabi64} \
93	${_coretemp} \
94	${_cp} \
95	${_cpsw} \
96	${_cpuctl} \
97	${_cpufreq} \
98	${_crypto} \
99	${_cryptodev} \
100	ctl \
101	${_cxgb} \
102	${_cxgbe} \
103	dc \
104	dcons \
105	dcons_crom \
106	${_dpdk_lpm4} \
107	${_dpdk_lpm6} \
108	${_dpms} \
109	dummynet \
110	${_dwwdt} \
111	${_efirt} \
112	${_em} \
113	${_ena} \
114	${_enetc} \
115	${_enetc_mdio} \
116	esp \
117	${_et} \
118	evdev \
119	${_exca} \
120	ext2fs \
121	fdc \
122	fdescfs \
123	${_felix} \
124	${_ffec} \
125	${_fib_dxr} \
126	filemon \
127	firewire \
128	firmware \
129	${_ftwd} \
130	fusefs \
131	${_fxp} \
132	gem \
133	geom \
134	${_glxiic} \
135	${_glxsb} \
136	gpio \
137	hid \
138	hifn \
139	${_hpt27xx} \
140	${_hptiop} \
141	${_hptmv} \
142	${_hptnr} \
143	${_hptrr} \
144	hwpmc \
145	${_hwpmc_mips24k} \
146	${_hwpmc_mips74k} \
147	${_hyperv} \
148	i2c \
149	${_iavf} \
150        ${_ibcore} \
151	${_ichwd} \
152	${_ice} \
153	${_ice_ddp} \
154	${_ida} \
155	if_bridge \
156	if_disc \
157	if_edsc \
158	${_if_enc} \
159	if_epair \
160	${_if_gif} \
161	${_if_gre} \
162	${_if_me} \
163	if_infiniband \
164	if_lagg \
165	${_if_stf} \
166	if_tuntap \
167	if_vlan \
168	if_vxlan \
169	iflib \
170	${_igc} \
171	${_iir} \
172	imgact_binmisc \
173	${_intelspi} \
174	${_io} \
175	${_ioat} \
176        ${_ipoib} \
177	${_ipdivert} \
178	${_ipfilter} \
179	${_ipfw} \
180	ipfw_nat \
181	${_ipfw_nat64} \
182	${_ipfw_nptv6} \
183	${_ipfw_pmod} \
184	${_ipmi} \
185	ip6_mroute_mod \
186	ip_mroute_mod \
187	${_ips} \
188	${_ipsec} \
189	${_ipw} \
190	${_ipwfw} \
191	${_isci} \
192	${_iser} \
193	isp \
194	${_ispfw} \
195	${_itwd} \
196	${_iwi} \
197	${_iwifw} \
198	${_iwm} \
199	${_iwmfw} \
200	${_iwn} \
201	${_iwnfw} \
202	${_ix} \
203	${_ixv} \
204	${_ixl} \
205	jme \
206	kbdmux \
207	kgssapi \
208	kgssapi_krb5 \
209	khelp \
210	krpc \
211	ksyms \
212	le \
213	lge \
214	libalias \
215	libiconv \
216	libmchain \
217	lindebugfs \
218	linuxkpi \
219	${_lio} \
220	lpt \
221	mac_biba \
222	mac_bsdextended \
223	mac_ifoff \
224	mac_lomac \
225	mac_mls \
226	mac_none \
227	mac_ntpd \
228	mac_partition \
229	mac_portacl \
230	mac_seeotheruids \
231	mac_stub \
232	mac_test \
233	${_malo} \
234	md \
235	mdio \
236	mem \
237	mfi \
238	mii \
239	mlx \
240	mlxfw \
241	${_mlx4} \
242	${_mlx4ib} \
243	${_mlx4en} \
244	${_mlx5} \
245	${_mlx5en} \
246	${_mlx5ib} \
247	${_mly} \
248	mmc \
249	mmcsd \
250	${_mpr} \
251	${_mps} \
252	mpt \
253	mqueue \
254	mrsas \
255	msdosfs \
256	msdosfs_iconv \
257	msk \
258	${_mthca} \
259	mvs \
260	mwl \
261	${_mwlfw} \
262	mxge \
263	my \
264	${_nctgpio} \
265	${_netgraph} \
266	${_nfe} \
267	nfscl \
268	nfscommon \
269	nfsd \
270	nfslockd \
271	nfssvc \
272	nge \
273	nmdm \
274	nullfs \
275	${_ntb} \
276	${_nvd} \
277	${_nvdimm} \
278	${_nvme} \
279	${_nvram} \
280	oce \
281	${_ocs_fc} \
282	${_ossl} \
283	otus \
284	${_otusfw} \
285	ow \
286	${_padlock} \
287	${_padlock_rng} \
288	${_pchtherm} \
289	${_pcfclock} \
290	${_pf} \
291	${_pflog} \
292	${_pfsync} \
293	plip \
294	${_pms} \
295	ppbus \
296	ppc \
297	ppi \
298	pps \
299	procfs \
300	proto \
301	pseudofs \
302	${_pst} \
303	pty  \
304	puc \
305	pwm \
306	${_qat} \
307	${_qatfw} \
308	${_qlxge} \
309	${_qlxgb} \
310	${_qlxgbe} \
311	${_qlnx} \
312	ral \
313	${_ralfw} \
314	${_random_fortuna} \
315	${_random_other} \
316	rc4 \
317	${_rdma} \
318	${_rdrand_rng} \
319	re \
320	rl \
321	${_rockchip} \
322	rtsx \
323	rtwn \
324	rtwn_pci \
325	rtwn_usb \
326	${_rtwnfw} \
327	${_s3} \
328	${_safe} \
329	safexcel \
330	${_sbni} \
331	scc \
332	${_sctp} \
333	sdhci \
334	${_sdhci_acpi} \
335	${_sdhci_fdt} \
336	sdhci_pci \
337	sdio \
338	sem \
339	send \
340	${_sfxge} \
341	sge \
342	${_sgx} \
343	${_sgx_linux} \
344	siftr \
345	siis \
346	sis \
347	sk \
348	${_smartpqi} \
349	smbfs \
350	snp \
351	sound \
352	${_speaker} \
353	spi \
354	${_splash} \
355	${_sppp} \
356	ste \
357	stge \
358	${_sume} \
359	${_superio} \
360	${_sym} \
361	${_syscons} \
362	sysvipc \
363	tcp \
364	${_ti} \
365	tmpfs \
366	${_toecore} \
367	${_tpm} \
368	${_twa} \
369	twe \
370	tws \
371	uart \
372	udf \
373	udf_iconv \
374	ufs \
375	uinput \
376	unionfs \
377	usb \
378	${_vesa} \
379	virtio \
380	vge \
381	${_viawd} \
382	videomode \
383	vkbd \
384	${_vmd} \
385	${_vmm} \
386	${_vmware} \
387	vr \
388	vte \
389	${_wbwd} \
390	wlan \
391	wlan_acl \
392	wlan_amrr \
393	wlan_ccmp \
394	wlan_rssadapt \
395	wlan_tkip \
396	wlan_wep \
397	wlan_xauth \
398	${_wpi} \
399	${_wpifw} \
400	${_x86bios} \
401	xdr \
402	xl \
403	xz \
404	zlib
405
406.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
407_autofs=	autofs
408.endif
409
410.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
411.if (${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "") && \
412	${MACHINE_CPUARCH} != "mips"
413.if ${KERN_OPTS:MKDTRACE_HOOKS}
414SUBDIR+=	dtrace
415.endif
416.endif
417SUBDIR+=	opensolaris
418.endif
419
420.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
421.if exists(${SRCTOP}/sys/opencrypto)
422_crypto=	crypto
423_cryptodev=	cryptodev
424_random_fortuna=random_fortuna
425_random_other=	random_other
426.endif
427.endif
428
429.if ${MK_CUSE} != "no" || defined(ALL_MODULES)
430SUBDIR+=	cuse
431.endif
432
433.if ${MK_EFI} != "no"
434.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
435_efirt=		efirt
436.endif
437.endif
438
439.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
440	defined(ALL_MODULES)
441_carp=		carp
442_toecore=	toecore
443_if_enc=	if_enc
444_if_gif=	if_gif
445_if_gre=	if_gre
446_ipfw_pmod=	ipfw_pmod
447.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC}
448_ipsec=		ipsec
449.endif
450.if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP}
451_sctp=		sctp
452.endif
453.endif
454
455.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
456	defined(ALL_MODULES)
457_if_stf=	if_stf
458.endif
459
460.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
461_if_me=		if_me
462_ipdivert=	ipdivert
463_ipfw=		ipfw
464.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
465_ipfw_nat64=	ipfw_nat64
466.endif
467.endif
468
469.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
470_ipfw_nptv6=	ipfw_nptv6
471.endif
472
473.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
474_ipfilter=	ipfilter
475.endif
476
477.if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO}
478_dpdk_lpm4=	dpdk_lpm4
479_fib_dxr=	fib_dxr
480.endif
481
482.if ${MK_INET6_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO}
483_dpdk_lpm6=	dpdk_lpm6
484.endif
485
486.if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
487SUBDIR+=	cfiscsi
488SUBDIR+=	iscsi
489SUBDIR+=	iscsi_initiator
490.endif
491
492.if !empty(OPT_FDT)
493SUBDIR+=	fdt
494.endif
495
496# Linuxulator
497.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
498    ${MACHINE_CPUARCH} == "i386"
499SUBDIR+=	linprocfs
500SUBDIR+=	linsysfs
501.endif
502.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
503SUBDIR+=	linux
504.endif
505.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
506SUBDIR+=	linux64
507SUBDIR+=	linux_common
508.endif
509
510.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
511    ${MACHINE_CPUARCH} == "i386"
512_ena=		ena
513.if ${MK_OFED} != "no" || defined(ALL_MODULES)
514_ibcore=	ibcore
515_ipoib=		ipoib
516_iser=		iser
517.endif
518_ipmi=		ipmi
519_mlx4=		mlx4
520_mlx5=		mlx5
521.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
522	defined(ALL_MODULES)
523_mlx4en=	mlx4en
524_mlx5en=	mlx5en
525.endif
526.if ${MK_OFED} != "no" || defined(ALL_MODULES)
527_mthca=		mthca
528_mlx4ib=	mlx4ib
529_mlx5ib=	mlx5ib
530.endif
531_ossl=		ossl
532_vmware=	vmware
533.endif
534
535.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
536_netgraph=	netgraph
537.endif
538
539.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
540	${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
541_pf=		pf
542_pflog=		pflog
543.if ${MK_INET_SUPPORT} != "no"
544_pfsync=	pfsync
545.endif
546.endif
547
548.if ${MK_SOURCELESS_UCODE} != "no"
549_bce=		bce
550_fxp=		fxp
551_ispfw=		ispfw
552_ti=		ti
553
554.if ${MACHINE_CPUARCH} != "mips"
555_mwlfw=		mwlfw
556_otusfw=	otusfw
557_ralfw=		ralfw
558_rtwnfw=	rtwnfw
559.endif
560.endif
561
562.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
563	${MACHINE_CPUARCH} != "mips" && \
564	${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
565	${MACHINE_CPUARCH} != "riscv"
566_cxgbe=		cxgbe
567.endif
568
569.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64"
570_ice=		ice
571.if ${MK_SOURCELESS_UCODE} != "no"
572_ice_ddp=	ice_ddp
573.endif
574.endif
575
576# These rely on 64bit atomics
577.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
578	${MACHINE_CPUARCH} != "mips"
579_mps=		mps
580_mpr=		mpr
581.endif
582
583.if ${MK_TESTS} != "no" || defined(ALL_MODULES)
584SUBDIR+=	tests
585.endif
586
587.if ${MK_ZFS} != "no" || (defined(ALL_MODULES)  && ${MACHINE_CPUARCH} != "powerpc")
588SUBDIR+=	zfs
589.endif
590
591.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
592_hwpmc_mips24k=	hwpmc_mips24k
593_hwpmc_mips74k=	hwpmc_mips74k
594.endif
595
596.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \
597	${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \
598	${MACHINE_CPUARCH} != "riscv"
599_syscons=	syscons
600.endif
601
602.if ${MACHINE_CPUARCH} != "mips"
603# no BUS_SPACE_UNSPECIFIED
604# No barrier instruction support (specific to this driver)
605_sym=		sym
606# intr_disable() is a macro, causes problems
607.if ${MK_SOURCELESS_UCODE} != "no"
608_cxgb=		cxgb
609.endif
610.endif
611
612.if ${MACHINE_CPUARCH} == "aarch64"
613_allwinner=	allwinner
614_armv8crypto=	armv8crypto
615_dwwdt=		dwwdt
616_em=		em
617_enetc=		enetc
618_enetc_mdio=	enetc_mdio
619_felix=		felix
620_rockchip=	rockchip
621.endif
622
623.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
624_sdhci_fdt=	sdhci_fdt
625.endif
626
627.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
628_agp=		agp
629_aout=		aout
630_bios=		bios
631.if ${MK_SOURCELESS_UCODE} != "no"
632_bxe=		bxe
633.endif
634_cardbus=	cardbus
635_cbb=		cbb
636_cpuctl=	cpuctl
637_cpufreq=	cpufreq
638_dpms=		dpms
639_em=		em
640_et=		et
641_ftwd=		ftwd
642_exca=		exca
643_igc=		igc
644_io=		io
645_itwd=		itwd
646_ix=		ix
647_ixv=		ixv
648.if ${MK_SOURCELESS_UCODE} != "no"
649_lio=		lio
650.endif
651_nctgpio=	nctgpio
652_ntb=		ntb
653_ocs_fc=	ocs_fc
654_qat=		qat
655_qatfw=		qatfw
656.if ${MK_OFED} != "no" || defined(ALL_MODULES)
657_rdma=		rdma
658.endif
659_safe=		safe
660_speaker=	speaker
661_splash=	splash
662_sppp=		sppp
663_wbwd=		wbwd
664
665_aac=		aac
666_aacraid=	aacraid
667_acpi=		acpi
668.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
669_aesni=		aesni
670.endif
671_amd_ecc_inject=amd_ecc_inject
672_amdsbwd=	amdsbwd
673_amdsmn=	amdsmn
674_amdtemp=	amdtemp
675_arcmsr=	arcmsr
676_asmc=		asmc
677.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
678_blake2=	blake2
679.endif
680_bytgpio=	bytgpio
681_chvgpio=	chvgpio
682_ciss=		ciss
683_chromebook_platform=	chromebook_platform
684_coretemp=	coretemp
685.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
686_hpt27xx=	hpt27xx
687.endif
688_hptiop=	hptiop
689.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
690_hptmv=		hptmv
691_hptnr=		hptnr
692_hptrr=		hptrr
693.endif
694_hyperv=	hyperv
695_ichwd=		ichwd
696_ida=		ida
697_iir=		iir
698_intelspi=	intelspi
699_ips=		ips
700_isci=		isci
701_ipw=		ipw
702_iwi=		iwi
703_iwm=		iwm
704_iwn=		iwn
705.if ${MK_SOURCELESS_UCODE} != "no"
706_ipwfw=		ipwfw
707_iwifw=		iwifw
708_iwmfw=		iwmfw
709_iwnfw=		iwnfw
710.endif
711_mly=		mly
712_nfe=		nfe
713_nvd=		nvd
714_nvme=		nvme
715_nvram=		nvram
716.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
717_padlock=	padlock
718_padlock_rng=	padlock_rng
719_rdrand_rng=	rdrand_rng
720.endif
721_pchtherm = pchtherm
722_s3=		s3
723_sdhci_acpi=	sdhci_acpi
724_superio=	superio
725_tpm=		tpm
726_twa=		twa
727_vesa=		vesa
728_viawd=		viawd
729_wpi=		wpi
730.if ${MK_SOURCELESS_UCODE} != "no"
731_wpifw=		wpifw
732.endif
733_x86bios=	x86bios
734.endif
735
736.if ${MACHINE_CPUARCH} == "amd64"
737_amdgpio=	amdgpio
738_ccp=		ccp
739_iavf=		iavf
740_ioat=		ioat
741_ixl=		ixl
742_nvdimm=	nvdimm
743_pms=		pms
744_qlxge=		qlxge
745_qlxgb=		qlxgb
746_sume=		sume
747_vmd=		vmd
748.if ${MK_SOURCELESS_UCODE} != "no"
749_qlxgbe=	qlxgbe
750_qlnx=		qlnx
751.endif
752_sfxge=		sfxge
753_sgx=		sgx
754_sgx_linux=	sgx_linux
755_smartpqi=	smartpqi
756
757.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
758.if ${KERN_OPTS:MSMP}
759_vmm=		vmm
760.endif
761.endif
762.endif
763
764.if ${MACHINE_CPUARCH} == "i386"
765# XXX some of these can move to the general case when de-i386'ed
766# XXX some of these can move now, but are untested on other architectures.
767_3dfx=		3dfx
768_3dfx_linux=	3dfx_linux
769.if ${MK_SOURCELESS_HOST} != "no"
770_ce=		ce
771.endif
772.if ${MK_SOURCELESS_HOST} != "no"
773_cp=		cp
774.endif
775_glxiic=	glxiic
776_glxsb=		glxsb
777_pcfclock=	pcfclock
778_pst=		pst
779_sbni=		sbni
780.endif
781
782.if ${MACHINE_ARCH} == "armv7"
783_cfi=		cfi
784_cpsw=		cpsw
785.endif
786
787.if ${MACHINE_CPUARCH} == "powerpc"
788_aacraid=	aacraid
789_agp=		agp
790_an=		an
791_cardbus=	cardbus
792_cbb=		cbb
793_cfi=		cfi
794_cpufreq=	cpufreq
795_exca=		exca
796_ffec=		ffec
797_nvd=		nvd
798_nvme=		nvme
799.endif
800
801.if ${MACHINE_ARCH:Mpowerpc64*} != ""
802_ipmi=		ipmi
803_ixl=		ixl
804_nvram=		opal_nvram
805.endif
806.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
807# Don't build powermac_nvram for powerpcspe, it's never supported.
808_nvram+=	powermac_nvram
809.endif
810
811.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
812     ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386")
813_cloudabi32=	cloudabi32
814.endif
815.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
816_cloudabi64=	cloudabi64
817.endif
818
819.endif
820
821.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
822_bcm283x_clkman=  bcm283x_clkman
823_bcm283x_pwm=  bcm283x_pwm
824.endif
825
826.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000)
827# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11:
828# https://bugs.llvm.org/show_bug.cgi?id=44351
829_malo=	malo
830.endif
831
832SUBDIR+=${MODULES_EXTRA}
833
834.for reject in ${WITHOUT_MODULES}
835SUBDIR:= ${SUBDIR:N${reject}}
836.endfor
837
838# Calling kldxref(8) for each module is expensive.
839.if !defined(NO_XREF)
840.MAKEFLAGS+=	-DNO_XREF
841afterinstall: .PHONY
842	@if type kldxref >/dev/null 2>&1; then \
843		${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
844		${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
845	fi
846.endif
847
848SUBDIR:= ${SUBDIR:u:O}
849
850.include <bsd.subdir.mk>
851