xref: /freebsd/sys/modules/Makefile (revision 19cca0b9613d7c3058e41baf0204245119732235)
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	${_efirt} \
112	${_em} \
113	${_ena} \
114	esp \
115	${_et} \
116	evdev \
117	${_exca} \
118	ext2fs \
119	fdc \
120	fdescfs \
121	${_ffec} \
122	filemon \
123	firewire \
124	firmware \
125	${_ftwd} \
126	fusefs \
127	${_fxp} \
128	gem \
129	geom \
130	${_glxiic} \
131	${_glxsb} \
132	gpio \
133	hid \
134	hifn \
135	${_hpt27xx} \
136	${_hptiop} \
137	${_hptmv} \
138	${_hptnr} \
139	${_hptrr} \
140	hwpmc \
141	${_hwpmc_mips24k} \
142	${_hwpmc_mips74k} \
143	${_hyperv} \
144	i2c \
145	${_iavf} \
146        ${_ibcore} \
147	${_ichwd} \
148	${_ice} \
149	${_ice_ddp} \
150	${_ida} \
151	if_bridge \
152	if_disc \
153	if_edsc \
154	${_if_enc} \
155	if_epair \
156	${_if_gif} \
157	${_if_gre} \
158	${_if_me} \
159	if_infiniband \
160	if_lagg \
161	${_if_ndis} \
162	${_if_stf} \
163	if_tuntap \
164	if_vlan \
165	if_vxlan \
166	if_wg \
167	iflib \
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	${_ktls_ocf} \
210	le \
211	lge \
212	libalias \
213	libiconv \
214	libmchain \
215	lindebugfs \
216	linuxkpi \
217	${_lio} \
218	lpt \
219	mac_biba \
220	mac_bsdextended \
221	mac_ifoff \
222	mac_lomac \
223	mac_mls \
224	mac_none \
225	mac_ntpd \
226	mac_partition \
227	mac_portacl \
228	mac_seeotheruids \
229	mac_stub \
230	mac_test \
231	${_malo} \
232	md \
233	mdio \
234	mem \
235	mfi \
236	mii \
237	mlx \
238	mlxfw \
239	${_mlx4} \
240	${_mlx4ib} \
241	${_mlx4en} \
242	${_mlx5} \
243	${_mlx5en} \
244	${_mlx5ib} \
245	${_mly} \
246	mmc \
247	mmcsd \
248	${_mpr} \
249	${_mps} \
250	mpt \
251	mqueue \
252	mrsas \
253	msdosfs \
254	msdosfs_iconv \
255	msk \
256	${_mthca} \
257	mvs \
258	mwl \
259	${_mwlfw} \
260	mxge \
261	my \
262	${_nctgpio} \
263	${_ndis} \
264	${_netgraph} \
265	${_nfe} \
266	nfscl \
267	nfscommon \
268	nfsd \
269	nfslockd \
270	nfssvc \
271	nge \
272	nmdm \
273	nullfs \
274	${_ntb} \
275	${_nvd} \
276	${_nvdimm} \
277	${_nvme} \
278	${_nvram} \
279	oce \
280	${_ocs_fc} \
281	${_ossl} \
282	otus \
283	${_otusfw} \
284	ow \
285	${_padlock} \
286	${_padlock_rng} \
287	${_pccard} \
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_pci \
336	sdio \
337	sem \
338	send \
339	${_sfxge} \
340	sge \
341	${_sgx} \
342	${_sgx_linux} \
343	siftr \
344	siis \
345	sis \
346	sk \
347	${_smartpqi} \
348	smbfs \
349	snp \
350	sound \
351	${_speaker} \
352	spi \
353	${_splash} \
354	${_sppp} \
355	ste \
356	stge \
357	${_sume} \
358	${_superio} \
359	${_sym} \
360	${_syscons} \
361	sysvipc \
362	tcp \
363	${_ti} \
364	tmpfs \
365	${_toecore} \
366	${_tpm} \
367	${_twa} \
368	twe \
369	tws \
370	uart \
371	udf \
372	udf_iconv \
373	ufs \
374	uinput \
375	unionfs \
376	usb \
377	${_vesa} \
378	${_virtio} \
379	vge \
380	${_viawd} \
381	videomode \
382	vkbd \
383	${_vmd} \
384	${_vmm} \
385	${_vmware} \
386	vr \
387	vte \
388	${_wbwd} \
389	wlan \
390	wlan_acl \
391	wlan_amrr \
392	wlan_ccmp \
393	wlan_rssadapt \
394	wlan_tkip \
395	wlan_wep \
396	wlan_xauth \
397	${_wpi} \
398	${_wpifw} \
399	${_x86bios} \
400	xdr \
401	xl \
402	xz \
403	zlib
404
405.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
406_autofs=	autofs
407.endif
408
409.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
410.if (${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "") && \
411	${MACHINE_CPUARCH} != "mips"
412.if ${KERN_OPTS:MKDTRACE_HOOKS}
413SUBDIR+=	dtrace
414.endif
415.endif
416SUBDIR+=	opensolaris
417.endif
418
419.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
420.if exists(${SRCTOP}/sys/opencrypto)
421_crypto=	crypto
422_cryptodev=	cryptodev
423_random_fortuna=random_fortuna
424_random_other=	random_other
425_ktls_ocf=	ktls_ocf
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.endif
480
481.if ${MK_INET6_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO}
482_dpdk_lpm6=	dpdk_lpm6
483.endif
484
485.if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
486SUBDIR+=	cfiscsi
487SUBDIR+=	iscsi
488SUBDIR+=	iscsi_initiator
489.endif
490
491.if !empty(OPT_FDT)
492SUBDIR+=	fdt
493.endif
494
495# Linuxulator
496.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
497    ${MACHINE_CPUARCH} == "i386"
498SUBDIR+=	linprocfs
499SUBDIR+=	linsysfs
500.endif
501.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
502SUBDIR+=	linux
503.endif
504.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
505SUBDIR+=	linux64
506SUBDIR+=	linux_common
507.endif
508
509.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
510    ${MACHINE_CPUARCH} == "i386"
511_ena=		ena
512.if ${MK_OFED} != "no" || defined(ALL_MODULES)
513_ibcore=	ibcore
514_ipoib=		ipoib
515_iser=		iser
516.endif
517_ipmi=		ipmi
518_mlx4=		mlx4
519_mlx5=		mlx5
520.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
521	defined(ALL_MODULES)
522_mlx4en=	mlx4en
523_mlx5en=	mlx5en
524.endif
525.if ${MK_OFED} != "no" || defined(ALL_MODULES)
526_mthca=		mthca
527_mlx4ib=	mlx4ib
528_mlx5ib=	mlx5ib
529.endif
530_ossl=		ossl
531_vmware=	vmware
532.endif
533
534.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
535_netgraph=	netgraph
536.endif
537
538.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
539	${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
540_pf=		pf
541_pflog=		pflog
542.if ${MK_INET_SUPPORT} != "no"
543_pfsync=	pfsync
544.endif
545.endif
546
547.if ${MK_SOURCELESS_UCODE} != "no"
548_bce=		bce
549_fxp=		fxp
550_ispfw=		ispfw
551_ti=		ti
552
553.if ${MACHINE_CPUARCH} != "mips"
554_mwlfw=		mwlfw
555_otusfw=	otusfw
556_ralfw=		ralfw
557_rtwnfw=	rtwnfw
558.endif
559.endif
560
561.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
562	${MACHINE_CPUARCH} != "mips" && \
563	${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
564	${MACHINE_CPUARCH} != "riscv"
565_cxgbe=		cxgbe
566.endif
567
568.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64"
569_ice=		ice
570.if ${MK_SOURCELESS_UCODE} != "no"
571_ice_ddp=	ice_ddp
572.endif
573.endif
574
575# These rely on 64bit atomics
576.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
577	${MACHINE_CPUARCH} != "mips"
578_mps=		mps
579_mpr=		mpr
580.endif
581
582.if ${MK_TESTS} != "no" || defined(ALL_MODULES)
583SUBDIR+=	tests
584.endif
585
586.if ${MK_ZFS} != "no" || (defined(ALL_MODULES)  && ${MACHINE_CPUARCH} != "powerpc")
587SUBDIR+=	zfs
588.endif
589
590.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
591_hwpmc_mips24k=	hwpmc_mips24k
592_hwpmc_mips74k=	hwpmc_mips74k
593.endif
594
595.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \
596	${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \
597	${MACHINE_CPUARCH} != "riscv"
598_syscons=	syscons
599.endif
600
601.if ${MACHINE_CPUARCH} != "mips"
602# no BUS_SPACE_UNSPECIFIED
603# No barrier instruction support (specific to this driver)
604_sym=		sym
605# intr_disable() is a macro, causes problems
606.if ${MK_SOURCELESS_UCODE} != "no"
607_cxgb=		cxgb
608.endif
609.endif
610
611.if ${MACHINE_CPUARCH} == "aarch64"
612_allwinner=	allwinner
613_armv8crypto=	armv8crypto
614_em=		em
615_rockchip=	rockchip
616.endif
617
618.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
619_agp=		agp
620_an=		an
621_aout=		aout
622_bios=		bios
623.if ${MK_SOURCELESS_UCODE} != "no"
624_bxe=		bxe
625.endif
626_cardbus=	cardbus
627_cbb=		cbb
628_cpuctl=	cpuctl
629_cpufreq=	cpufreq
630_dpms=		dpms
631_em=		em
632_et=		et
633_ftwd=		ftwd
634_exca=		exca
635_if_ndis=	if_ndis
636_io=		io
637_itwd=		itwd
638_ix=		ix
639_ixv=		ixv
640.if ${MK_SOURCELESS_UCODE} != "no"
641_lio=		lio
642.endif
643_nctgpio=	nctgpio
644_ndis=		ndis
645_ntb=		ntb
646_ocs_fc=	ocs_fc
647_pccard=	pccard
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_virtio=	virtio
724_wpi=		wpi
725.if ${MK_SOURCELESS_UCODE} != "no"
726_wpifw=		wpifw
727.endif
728_x86bios=	x86bios
729.endif
730
731.if ${MACHINE_CPUARCH} == "amd64"
732_amdgpio=	amdgpio
733_ccp=		ccp
734_iavf=		iavf
735_ioat=		ioat
736_ixl=		ixl
737_nvdimm=	nvdimm
738_pms=		pms
739_qlxge=		qlxge
740_qlxgb=		qlxgb
741_sume=		sume
742_vmd=		vmd
743.if ${MK_SOURCELESS_UCODE} != "no"
744_qlxgbe=	qlxgbe
745_qlnx=		qlnx
746.endif
747_sfxge=		sfxge
748_sgx=		sgx
749_sgx_linux=	sgx_linux
750_smartpqi=	smartpqi
751
752.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
753.if ${KERN_OPTS:MSMP}
754_vmm=		vmm
755.endif
756.endif
757.endif
758
759.if ${MACHINE_CPUARCH} == "i386"
760# XXX some of these can move to the general case when de-i386'ed
761# XXX some of these can move now, but are untested on other architectures.
762_3dfx=		3dfx
763_3dfx_linux=	3dfx_linux
764.if ${MK_SOURCELESS_HOST} != "no"
765_ce=		ce
766.endif
767.if ${MK_SOURCELESS_HOST} != "no"
768_cp=		cp
769.endif
770_glxiic=	glxiic
771_glxsb=		glxsb
772_pcfclock=	pcfclock
773_pst=		pst
774_sbni=		sbni
775.endif
776
777.if ${MACHINE_ARCH} == "armv7"
778_cfi=		cfi
779_cpsw=		cpsw
780.endif
781
782.if ${MACHINE_CPUARCH} == "powerpc"
783_aacraid=	aacraid
784_agp=		agp
785_an=		an
786_cardbus=	cardbus
787_cbb=		cbb
788_cfi=		cfi
789_cpufreq=	cpufreq
790_exca=		exca
791_ffec=		ffec
792_nvd=		nvd
793_nvme=		nvme
794_pccard=	pccard
795_virtio=	virtio
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