xref: /freebsd/sys/modules/Makefile (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
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	${_aout} \
42	${_arcmsr} \
43	${_allwinner} \
44	${_armv8crypto} \
45	${_asmc} \
46	ata \
47	ath \
48	ath_dfs \
49	ath_hal \
50	ath_hal_ar5210 \
51	ath_hal_ar5211 \
52	ath_hal_ar5212 \
53	ath_hal_ar5416 \
54	ath_hal_ar9300 \
55	ath_main \
56	ath_rate \
57	ath_pci \
58	${_autofs} \
59	axgbe \
60	backlight \
61	${_bce} \
62	${_bcm283x_clkman} \
63	${_bcm283x_pwm} \
64	bfe \
65	bge \
66	bhnd \
67	${_bxe} \
68	${_bios} \
69	${_blake2} \
70	bnxt \
71	bridgestp \
72	bwi \
73	bwn \
74	${_bytgpio} \
75	${_chvgpio} \
76	cam \
77	${_cardbus} \
78	${_carp} \
79	cas \
80	${_cbb} \
81	cc \
82	${_ccp} \
83	cd9660 \
84	cd9660_iconv \
85	${_ce} \
86	${_cfi} \
87	${_chromebook_platform} \
88	${_ciss} \
89	${_coretemp} \
90	${_cp} \
91	${_cpsw} \
92	${_cpuctl} \
93	${_cpufreq} \
94	${_crypto} \
95	${_cryptodev} \
96	ctl \
97	${_cxgb} \
98	${_cxgbe} \
99	dc \
100	dcons \
101	dcons_crom \
102	${_dpdk_lpm4} \
103	${_dpdk_lpm6} \
104	${_dpms} \
105	dummynet \
106	${_dwwdt} \
107	${_e6000sw} \
108	${_efirt} \
109	${_em} \
110	${_ena} \
111	${_enetc} \
112	${_et} \
113	evdev \
114	${_exca} \
115	ext2fs \
116	fdc \
117	fdescfs \
118	${_felix} \
119	${_ffec} \
120	${_fib_dxr} \
121	filemon \
122	firewire \
123	firmware \
124	flash \
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_stf} \
162	if_tuntap \
163	if_vlan \
164	if_vxlan \
165	iflib \
166	${_igc} \
167	imgact_binmisc \
168	${_intelspi} \
169	${_io} \
170	${_ioat} \
171        ${_ipoib} \
172	${_ipdivert} \
173	${_ipfilter} \
174	${_ipfw} \
175	ipfw_nat \
176	${_ipfw_nat64} \
177	${_ipfw_nptv6} \
178	${_ipfw_pmod} \
179	${_ipmi} \
180	ip6_mroute_mod \
181	ip_mroute_mod \
182	${_ips} \
183	${_ipsec} \
184	${_ipw} \
185	${_ipwfw} \
186	${_isci} \
187	${_iser} \
188	isp \
189	${_ispfw} \
190	${_itwd} \
191	${_iwi} \
192	${_iwifw} \
193	${_iwm} \
194	${_iwmfw} \
195	${_iwn} \
196	${_iwnfw} \
197	${_ix} \
198	${_ixv} \
199	${_ixl} \
200	jme \
201	kbdmux \
202	kgssapi \
203	kgssapi_krb5 \
204	khelp \
205	krpc \
206	ksyms \
207	le \
208	lge \
209	libalias \
210	libiconv \
211	libmchain \
212	lindebugfs \
213	linuxkpi \
214	${_lio} \
215	lpt \
216	mac_biba \
217	mac_bsdextended \
218	mac_ifoff \
219	mac_lomac \
220	mac_mls \
221	mac_none \
222	mac_ntpd \
223	mac_partition \
224	mac_portacl \
225	mac_priority \
226	mac_seeotheruids \
227	mac_stub \
228	mac_test \
229	${_malo} \
230	${_mana} \
231	md \
232	mdio \
233	${_mgb} \
234	mem \
235	mfi \
236	mii \
237	mlx \
238	mlxfw \
239	${_mlx4} \
240	${_mlx4ib} \
241	${_mlx4en} \
242	${_mlx5} \
243	${_mlx5en} \
244	${_mlx5ib} \
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	${_neta} \
263	${_netgraph} \
264	${_nfe} \
265	nfscl \
266	nfscommon \
267	nfsd \
268	nfslockd \
269	nfssvc \
270	nge \
271	nmdm \
272	nullfs \
273	${_ntb} \
274	${_nvd} \
275	${_nvdimm} \
276	${_nvme} \
277	${_nvram} \
278	oce \
279	${_ocs_fc} \
280	${_ossl} \
281	otus \
282	${_otusfw} \
283	ow \
284	${_padlock} \
285	${_padlock_rng} \
286	${_pchtherm} \
287	${_pcfclock} \
288	${_pf} \
289	${_pflog} \
290	${_pfsync} \
291	plip \
292	${_pms} \
293	ppbus \
294	ppc \
295	ppi \
296	pps \
297	procfs \
298	proto \
299	pseudofs \
300	${_pst} \
301	pty  \
302	puc \
303	pwm \
304	${_qat} \
305	${_qatfw} \
306	${_qlxge} \
307	${_qlxgb} \
308	${_qlxgbe} \
309	${_qlnx} \
310	ral \
311	${_ralfw} \
312	${_random_fortuna} \
313	${_random_other} \
314	rc4 \
315	${_rdma} \
316	${_rdrand_rng} \
317	re \
318	rl \
319	${_rockchip} \
320	rtsx \
321	rtwn \
322	rtwn_pci \
323	rtwn_usb \
324	${_rtwnfw} \
325	${_s3} \
326	${_safe} \
327	safexcel \
328	${_sbni} \
329	scc \
330	${_sctp} \
331	sdhci \
332	${_sdhci_acpi} \
333	${_sdhci_fdt} \
334	sdhci_pci \
335	sdio \
336	sem \
337	send \
338	${_sfxge} \
339	sge \
340	${_sgx} \
341	${_sgx_linux} \
342	siftr \
343	siis \
344	sis \
345	sk \
346	${_smartpqi} \
347	smbfs \
348	snp \
349	sound \
350	${_speaker} \
351	spi \
352	${_splash} \
353	ste \
354	stge \
355	${_sume} \
356	${_superio} \
357	${_p2sb} \
358	${_sym} \
359	${_syscons} \
360	sysvipc \
361	tcp \
362	${_ti} \
363	tmpfs \
364	${_toecore} \
365	${_tpm} \
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
486.endif
487
488.if !empty(OPT_FDT)
489SUBDIR+=	fdt
490.endif
491
492# Linuxulator
493.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
494    ${MACHINE_CPUARCH} == "i386"
495SUBDIR+=	linprocfs
496SUBDIR+=	linsysfs
497.endif
498.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
499SUBDIR+=	linux
500.endif
501.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
502SUBDIR+=	linux64
503SUBDIR+=	linux_common
504.endif
505
506.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
507    ${MACHINE_CPUARCH} == "i386"
508_ena=		ena
509.if ${MK_OFED} != "no" || defined(ALL_MODULES)
510_ibcore=	ibcore
511_ipoib=		ipoib
512_iser=		iser
513.endif
514_ipmi=		ipmi
515_mlx4=		mlx4
516_mlx5=		mlx5
517.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
518	defined(ALL_MODULES)
519_mlx4en=	mlx4en
520_mlx5en=	mlx5en
521.endif
522.if ${MK_OFED} != "no" || defined(ALL_MODULES)
523_mthca=		mthca
524_mlx4ib=	mlx4ib
525_mlx5ib=	mlx5ib
526.endif
527_ossl=		ossl
528_vmware=	vmware
529.endif
530
531.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
532_netgraph=	netgraph
533.endif
534
535.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
536	${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
537_pf=		pf
538_pflog=		pflog
539.if ${MK_INET_SUPPORT} != "no"
540_pfsync=	pfsync
541.endif
542.endif
543
544.if ${MK_SOURCELESS_UCODE} != "no"
545_bce=		bce
546_fxp=		fxp
547_ispfw=		ispfw
548_ti=		ti
549
550.if ${MACHINE_CPUARCH} != "mips"
551_mwlfw=		mwlfw
552_otusfw=	otusfw
553_ralfw=		ralfw
554_rtwnfw=	rtwnfw
555.endif
556.endif
557
558.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
559	${MACHINE_CPUARCH} != "mips" && \
560	${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
561	${MACHINE_CPUARCH} != "riscv"
562_cxgbe=		cxgbe
563.endif
564
565.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64"
566_ice=		ice
567.if ${MK_SOURCELESS_UCODE} != "no"
568_ice_ddp=	ice_ddp
569.endif
570.endif
571
572# These rely on 64bit atomics
573.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
574	${MACHINE_CPUARCH} != "mips"
575_mps=		mps
576_mpr=		mpr
577.endif
578
579.if ${MK_TESTS} != "no" || defined(ALL_MODULES)
580SUBDIR+=	tests
581.endif
582
583.if ${MK_ZFS} != "no" || (defined(ALL_MODULES)  && ${MACHINE_CPUARCH} != "powerpc")
584SUBDIR+=	zfs
585.endif
586
587.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
588_hwpmc_mips24k=	hwpmc_mips24k
589_hwpmc_mips74k=	hwpmc_mips74k
590.endif
591
592.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \
593	${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \
594	${MACHINE_CPUARCH} != "riscv"
595_syscons=	syscons
596.endif
597
598.if ${MACHINE_CPUARCH} != "mips"
599# no BUS_SPACE_UNSPECIFIED
600# No barrier instruction support (specific to this driver)
601_sym=		sym
602# intr_disable() is a macro, causes problems
603.if ${MK_SOURCELESS_UCODE} != "no"
604_cxgb=		cxgb
605.endif
606.endif
607
608.if ${MACHINE_CPUARCH} == "aarch64"
609_allwinner=	allwinner
610_armv8crypto=	armv8crypto
611_dwwdt=		dwwdt
612_em=		em
613_enetc=		enetc
614_felix=		felix
615_rockchip=	rockchip
616.endif
617
618.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
619_sdhci_fdt=	sdhci_fdt
620_e6000sw=	e6000sw
621_neta=		neta
622.endif
623
624.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
625_agp=		agp
626.if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED)
627_aout=		aout
628.endif
629_bios=		bios
630.if ${MK_SOURCELESS_UCODE} != "no"
631_bxe=		bxe
632.endif
633_cardbus=	cardbus
634_cbb=		cbb
635_cpuctl=	cpuctl
636_cpufreq=	cpufreq
637_dpms=		dpms
638_em=		em
639_et=		et
640_ftwd=		ftwd
641_exca=		exca
642_igc=		igc
643_io=		io
644_itwd=		itwd
645_ix=		ix
646_ixv=		ixv
647.if ${MK_SOURCELESS_UCODE} != "no"
648_lio=		lio
649.endif
650_mana=		mana
651_mgb=		mgb
652_nctgpio=	nctgpio
653_ntb=		ntb
654_ocs_fc=	ocs_fc
655_qat=		qat
656_qatfw=		qatfw
657.if ${MK_OFED} != "no" || defined(ALL_MODULES)
658_rdma=		rdma
659.endif
660_safe=		safe
661_speaker=	speaker
662_splash=	splash
663_p2sb=		p2sb
664_wbwd=		wbwd
665
666_aac=		aac
667_aacraid=	aacraid
668_acpi=		acpi
669.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
670_aesni=		aesni
671.endif
672_amd_ecc_inject=amd_ecc_inject
673_amdsbwd=	amdsbwd
674_amdsmn=	amdsmn
675_amdtemp=	amdtemp
676_arcmsr=	arcmsr
677_asmc=		asmc
678.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
679_blake2=	blake2
680.endif
681_bytgpio=	bytgpio
682_chvgpio=	chvgpio
683_ciss=		ciss
684_chromebook_platform=	chromebook_platform
685_coretemp=	coretemp
686.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
687_hpt27xx=	hpt27xx
688.endif
689_hptiop=	hptiop
690.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
691_hptmv=		hptmv
692_hptnr=		hptnr
693_hptrr=		hptrr
694.endif
695_hyperv=	hyperv
696_ichwd=		ichwd
697_ida=		ida
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_nfe=		nfe
712_nvd=		nvd
713_nvme=		nvme
714_nvram=		nvram
715.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
716_padlock=	padlock
717_padlock_rng=	padlock_rng
718_rdrand_rng=	rdrand_rng
719.endif
720_pchtherm = pchtherm
721_s3=		s3
722_sdhci_acpi=	sdhci_acpi
723_superio=	superio
724_tpm=		tpm
725_vesa=		vesa
726_viawd=		viawd
727_vmd=		vmd
728_wpi=		wpi
729.if ${MK_SOURCELESS_UCODE} != "no"
730_wpifw=		wpifw
731.endif
732_x86bios=	x86bios
733.endif
734
735.if ${MACHINE_CPUARCH} == "amd64"
736_amdgpio=	amdgpio
737_ccp=		ccp
738_iavf=		iavf
739_ioat=		ioat
740_ixl=		ixl
741_nvdimm=	nvdimm
742_pms=		pms
743_qlxge=		qlxge
744_qlxgb=		qlxgb
745_sume=		sume
746.if ${MK_SOURCELESS_UCODE} != "no"
747_qlxgbe=	qlxgbe
748_qlnx=		qlnx
749.endif
750_sfxge=		sfxge
751_sgx=		sgx
752_sgx_linux=	sgx_linux
753_smartpqi=	smartpqi
754_p2sb=		p2sb
755
756.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
757.if ${KERN_OPTS:MSMP}
758_vmm=		vmm
759.endif
760.endif
761.endif
762
763.if ${MACHINE_CPUARCH} == "i386"
764# XXX some of these can move to the general case when de-i386'ed
765# XXX some of these can move now, but are untested on other architectures.
766_3dfx=		3dfx
767_3dfx_linux=	3dfx_linux
768.if ${MK_SOURCELESS_HOST} != "no"
769_ce=		ce
770.endif
771.if ${MK_SOURCELESS_HOST} != "no"
772_cp=		cp
773.endif
774_glxiic=	glxiic
775_glxsb=		glxsb
776_pcfclock=	pcfclock
777_pst=		pst
778_sbni=		sbni
779.endif
780
781.if ${MACHINE_ARCH} == "armv7"
782_cfi=		cfi
783_cpsw=		cpsw
784.endif
785
786.if ${MACHINE_CPUARCH} == "powerpc"
787_aacraid=	aacraid
788_agp=		agp
789_an=		an
790_cardbus=	cardbus
791_cbb=		cbb
792_cfi=		cfi
793_cpufreq=	cpufreq
794_exca=		exca
795_ffec=		ffec
796_nvd=		nvd
797_nvme=		nvme
798.endif
799
800.if ${MACHINE_ARCH:Mpowerpc64*} != ""
801_ipmi=		ipmi
802_ixl=		ixl
803_nvram=		opal_nvram
804.endif
805.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
806# Don't build powermac_nvram for powerpcspe, it's never supported.
807_nvram+=	powermac_nvram
808.endif
809
810.endif
811
812.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
813_bcm283x_clkman=  bcm283x_clkman
814_bcm283x_pwm=  bcm283x_pwm
815.endif
816
817.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000)
818# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11:
819# https://bugs.llvm.org/show_bug.cgi?id=44351
820_malo=	malo
821.endif
822
823SUBDIR+=${MODULES_EXTRA}
824
825.for reject in ${WITHOUT_MODULES}
826SUBDIR:= ${SUBDIR:N${reject}}
827.endfor
828
829# Calling kldxref(8) for each module is expensive.
830.if !defined(NO_XREF)
831.MAKEFLAGS+=	-DNO_XREF
832afterinstall: .PHONY
833	@if type kldxref >/dev/null 2>&1; then \
834		${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
835		${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
836	fi
837.endif
838
839SUBDIR:= ${SUBDIR:u:O}
840
841.include <bsd.subdir.mk>
842