xref: /freebsd/sys/modules/Makefile (revision 3110d4ebd6c0848cf5e25890d01791bb407e2a9b)
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	${_an} \
43	${_aout} \
44	${_arcmsr} \
45	${_allwinner} \
46	${_armv8crypto} \
47	${_asmc} \
48	ata \
49	ath \
50	ath_dfs \
51	ath_hal \
52	ath_hal_ar5210 \
53	ath_hal_ar5211 \
54	ath_hal_ar5212 \
55	ath_hal_ar5416 \
56	ath_hal_ar9300 \
57	ath_main \
58	ath_rate \
59	ath_pci \
60	${_autofs} \
61	axgbe \
62	backlight \
63	${_bce} \
64	${_bcm283x_clkman} \
65	${_bcm283x_pwm} \
66	bfe \
67	bge \
68	bhnd \
69	${_bxe} \
70	${_bios} \
71	${_blake2} \
72	bnxt \
73	bridgestp \
74	bwi \
75	bwn \
76	${_bytgpio} \
77	${_chvgpio} \
78	cam \
79	${_cardbus} \
80	${_carp} \
81	cas \
82	${_cbb} \
83	cc \
84	${_ccp} \
85	cd9660 \
86	cd9660_iconv \
87	${_ce} \
88	${_cfi} \
89	${_chromebook_platform} \
90	${_ciss} \
91	cloudabi \
92	${_cloudabi32} \
93	${_cloudabi64} \
94	${_coretemp} \
95	${_cp} \
96	${_cpsw} \
97	${_cpuctl} \
98	${_cpufreq} \
99	${_crypto} \
100	${_cryptodev} \
101	ctl \
102	${_cxgb} \
103	${_cxgbe} \
104	dc \
105	dcons \
106	dcons_crom \
107	${_dpdk_lpm4} \
108	${_dpdk_lpm6} \
109	${_dpms} \
110	dummynet \
111	${_dwwdt} \
112	${_efirt} \
113	${_em} \
114	${_ena} \
115	esp \
116	${_et} \
117	evdev \
118	${_exca} \
119	ext2fs \
120	fdc \
121	fdescfs \
122	${_ffec} \
123	filemon \
124	firewire \
125	firmware \
126	${_ftwd} \
127	fusefs \
128	${_fxp} \
129	gem \
130	geom \
131	${_glxiic} \
132	${_glxsb} \
133	gpio \
134	hid \
135	hifn \
136	${_hpt27xx} \
137	${_hptiop} \
138	${_hptmv} \
139	${_hptnr} \
140	${_hptrr} \
141	hwpmc \
142	${_hwpmc_mips24k} \
143	${_hwpmc_mips74k} \
144	${_hyperv} \
145	i2c \
146	${_iavf} \
147        ${_ibcore} \
148	${_ichwd} \
149	${_ice} \
150	${_ice_ddp} \
151	${_ida} \
152	if_bridge \
153	if_disc \
154	if_edsc \
155	${_if_enc} \
156	if_epair \
157	${_if_gif} \
158	${_if_gre} \
159	${_if_me} \
160	if_infiniband \
161	if_lagg \
162	${_if_ndis} \
163	${_if_stf} \
164	if_tuntap \
165	if_vlan \
166	if_vxlan \
167	if_wg \
168	iflib \
169	${_iir} \
170	imgact_binmisc \
171	${_intelspi} \
172	${_io} \
173	${_ioat} \
174        ${_ipoib} \
175	${_ipdivert} \
176	${_ipfilter} \
177	${_ipfw} \
178	ipfw_nat \
179	${_ipfw_nat64} \
180	${_ipfw_nptv6} \
181	${_ipfw_pmod} \
182	${_ipmi} \
183	ip6_mroute_mod \
184	ip_mroute_mod \
185	${_ips} \
186	${_ipsec} \
187	${_ipw} \
188	${_ipwfw} \
189	${_isci} \
190	${_iser} \
191	isp \
192	${_ispfw} \
193	${_itwd} \
194	${_iwi} \
195	${_iwifw} \
196	${_iwm} \
197	${_iwmfw} \
198	${_iwn} \
199	${_iwnfw} \
200	${_ix} \
201	${_ixv} \
202	${_ixl} \
203	jme \
204	kbdmux \
205	kgssapi \
206	kgssapi_krb5 \
207	khelp \
208	krpc \
209	ksyms \
210	${_ktls_ocf} \
211	le \
212	lge \
213	libalias \
214	libiconv \
215	libmchain \
216	lindebugfs \
217	linuxkpi \
218	${_lio} \
219	lpt \
220	mac_biba \
221	mac_bsdextended \
222	mac_ifoff \
223	mac_lomac \
224	mac_mls \
225	mac_none \
226	mac_ntpd \
227	mac_partition \
228	mac_portacl \
229	mac_seeotheruids \
230	mac_stub \
231	mac_test \
232	${_malo} \
233	md \
234	mdio \
235	mem \
236	mfi \
237	mii \
238	mlx \
239	mlxfw \
240	${_mlx4} \
241	${_mlx4ib} \
242	${_mlx4en} \
243	${_mlx5} \
244	${_mlx5en} \
245	${_mlx5ib} \
246	${_mly} \
247	mmc \
248	mmcsd \
249	${_mpr} \
250	${_mps} \
251	mpt \
252	mqueue \
253	mrsas \
254	msdosfs \
255	msdosfs_iconv \
256	msk \
257	${_mthca} \
258	mvs \
259	mwl \
260	${_mwlfw} \
261	mxge \
262	my \
263	${_nctgpio} \
264	${_ndis} \
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	${_pccard} \
289	${_pchtherm} \
290	${_pcfclock} \
291	${_pf} \
292	${_pflog} \
293	${_pfsync} \
294	plip \
295	${_pms} \
296	ppbus \
297	ppc \
298	ppi \
299	pps \
300	procfs \
301	proto \
302	pseudofs \
303	${_pst} \
304	pty  \
305	puc \
306	pwm \
307	${_qat} \
308	${_qatfw} \
309	${_qlxge} \
310	${_qlxgb} \
311	${_qlxgbe} \
312	${_qlnx} \
313	ral \
314	${_ralfw} \
315	${_random_fortuna} \
316	${_random_other} \
317	rc4 \
318	${_rdma} \
319	${_rdrand_rng} \
320	re \
321	rl \
322	${_rockchip} \
323	rtsx \
324	rtwn \
325	rtwn_pci \
326	rtwn_usb \
327	${_rtwnfw} \
328	${_s3} \
329	${_safe} \
330	safexcel \
331	${_sbni} \
332	scc \
333	${_sctp} \
334	sdhci \
335	${_sdhci_acpi} \
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_ktls_ocf=	ktls_ocf
427.endif
428.endif
429
430.if ${MK_CUSE} != "no" || defined(ALL_MODULES)
431SUBDIR+=	cuse
432.endif
433
434.if ${MK_EFI} != "no"
435.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
436_efirt=		efirt
437.endif
438.endif
439
440.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
441	defined(ALL_MODULES)
442_carp=		carp
443_toecore=	toecore
444_if_enc=	if_enc
445_if_gif=	if_gif
446_if_gre=	if_gre
447_ipfw_pmod=	ipfw_pmod
448.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC}
449_ipsec=		ipsec
450.endif
451.if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP}
452_sctp=		sctp
453.endif
454.endif
455
456.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
457	defined(ALL_MODULES)
458_if_stf=	if_stf
459.endif
460
461.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
462_if_me=		if_me
463_ipdivert=	ipdivert
464_ipfw=		ipfw
465.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
466_ipfw_nat64=	ipfw_nat64
467.endif
468.endif
469
470.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
471_ipfw_nptv6=	ipfw_nptv6
472.endif
473
474.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
475_ipfilter=	ipfilter
476.endif
477
478.if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO}
479_dpdk_lpm4=	dpdk_lpm4
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_rockchip=	rockchip
618.endif
619
620.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
621_agp=		agp
622_an=		an
623_aout=		aout
624_bios=		bios
625.if ${MK_SOURCELESS_UCODE} != "no"
626_bxe=		bxe
627.endif
628_cardbus=	cardbus
629_cbb=		cbb
630_cpuctl=	cpuctl
631_cpufreq=	cpufreq
632_dpms=		dpms
633_em=		em
634_et=		et
635_ftwd=		ftwd
636_exca=		exca
637_if_ndis=	if_ndis
638_io=		io
639_itwd=		itwd
640_ix=		ix
641_ixv=		ixv
642.if ${MK_SOURCELESS_UCODE} != "no"
643_lio=		lio
644.endif
645_nctgpio=	nctgpio
646_ndis=		ndis
647_ntb=		ntb
648_ocs_fc=	ocs_fc
649_pccard=	pccard
650_qat=		qat
651_qatfw=		qatfw
652.if ${MK_OFED} != "no" || defined(ALL_MODULES)
653_rdma=		rdma
654.endif
655_safe=		safe
656_speaker=	speaker
657_splash=	splash
658_sppp=		sppp
659_wbwd=		wbwd
660
661_aac=		aac
662_aacraid=	aacraid
663_acpi=		acpi
664.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
665_aesni=		aesni
666.endif
667_amd_ecc_inject=amd_ecc_inject
668_amdsbwd=	amdsbwd
669_amdsmn=	amdsmn
670_amdtemp=	amdtemp
671_arcmsr=	arcmsr
672_asmc=		asmc
673.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
674_blake2=	blake2
675.endif
676_bytgpio=	bytgpio
677_chvgpio=	chvgpio
678_ciss=		ciss
679_chromebook_platform=	chromebook_platform
680_coretemp=	coretemp
681.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
682_hpt27xx=	hpt27xx
683.endif
684_hptiop=	hptiop
685.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
686_hptmv=		hptmv
687_hptnr=		hptnr
688_hptrr=		hptrr
689.endif
690_hyperv=	hyperv
691_ichwd=		ichwd
692_ida=		ida
693_iir=		iir
694_intelspi=	intelspi
695_ips=		ips
696_isci=		isci
697_ipw=		ipw
698_iwi=		iwi
699_iwm=		iwm
700_iwn=		iwn
701.if ${MK_SOURCELESS_UCODE} != "no"
702_ipwfw=		ipwfw
703_iwifw=		iwifw
704_iwmfw=		iwmfw
705_iwnfw=		iwnfw
706.endif
707_mly=		mly
708_nfe=		nfe
709_nvd=		nvd
710_nvme=		nvme
711_nvram=		nvram
712.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
713_padlock=	padlock
714_padlock_rng=	padlock_rng
715_rdrand_rng=	rdrand_rng
716.endif
717_pchtherm = pchtherm
718_s3=		s3
719_sdhci_acpi=	sdhci_acpi
720_superio=	superio
721_tpm=		tpm
722_twa=		twa
723_vesa=		vesa
724_viawd=		viawd
725_wpi=		wpi
726.if ${MK_SOURCELESS_UCODE} != "no"
727_wpifw=		wpifw
728.endif
729_x86bios=	x86bios
730.endif
731
732.if ${MACHINE_CPUARCH} == "amd64"
733_amdgpio=	amdgpio
734_ccp=		ccp
735_iavf=		iavf
736_ioat=		ioat
737_ixl=		ixl
738_nvdimm=	nvdimm
739_pms=		pms
740_qlxge=		qlxge
741_qlxgb=		qlxgb
742_sume=		sume
743_vmd=		vmd
744.if ${MK_SOURCELESS_UCODE} != "no"
745_qlxgbe=	qlxgbe
746_qlnx=		qlnx
747.endif
748_sfxge=		sfxge
749_sgx=		sgx
750_sgx_linux=	sgx_linux
751_smartpqi=	smartpqi
752
753.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
754.if ${KERN_OPTS:MSMP}
755_vmm=		vmm
756.endif
757.endif
758.endif
759
760.if ${MACHINE_CPUARCH} == "i386"
761# XXX some of these can move to the general case when de-i386'ed
762# XXX some of these can move now, but are untested on other architectures.
763_3dfx=		3dfx
764_3dfx_linux=	3dfx_linux
765.if ${MK_SOURCELESS_HOST} != "no"
766_ce=		ce
767.endif
768.if ${MK_SOURCELESS_HOST} != "no"
769_cp=		cp
770.endif
771_glxiic=	glxiic
772_glxsb=		glxsb
773_pcfclock=	pcfclock
774_pst=		pst
775_sbni=		sbni
776.endif
777
778.if ${MACHINE_ARCH} == "armv7"
779_cfi=		cfi
780_cpsw=		cpsw
781.endif
782
783.if ${MACHINE_CPUARCH} == "powerpc"
784_aacraid=	aacraid
785_agp=		agp
786_an=		an
787_cardbus=	cardbus
788_cbb=		cbb
789_cfi=		cfi
790_cpufreq=	cpufreq
791_exca=		exca
792_ffec=		ffec
793_nvd=		nvd
794_nvme=		nvme
795_pccard=	pccard
796.endif
797
798.if ${MACHINE_ARCH:Mpowerpc64*} != ""
799_ipmi=		ipmi
800_ixl=		ixl
801_nvram=		opal_nvram
802.endif
803.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
804# Don't build powermac_nvram for powerpcspe, it's never supported.
805_nvram+=	powermac_nvram
806.endif
807
808.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
809     ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386")
810_cloudabi32=	cloudabi32
811.endif
812.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
813_cloudabi64=	cloudabi64
814.endif
815
816.endif
817
818.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
819_bcm283x_clkman=  bcm283x_clkman
820_bcm283x_pwm=  bcm283x_pwm
821.endif
822
823.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000)
824# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11:
825# https://bugs.llvm.org/show_bug.cgi?id=44351
826_malo=	malo
827.endif
828
829SUBDIR+=${MODULES_EXTRA}
830
831.for reject in ${WITHOUT_MODULES}
832SUBDIR:= ${SUBDIR:N${reject}}
833.endfor
834
835# Calling kldxref(8) for each module is expensive.
836.if !defined(NO_XREF)
837.MAKEFLAGS+=	-DNO_XREF
838afterinstall: .PHONY
839	@if type kldxref >/dev/null 2>&1; then \
840		${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
841		${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
842	fi
843.endif
844
845SUBDIR:= ${SUBDIR:u:O}
846
847.include <bsd.subdir.mk>
848