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