xref: /freebsd/sys/modules/Makefile (revision ac099daf6742ead81ea7ea86351a8ef4e783041b)
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_stf} \
163	if_tuntap \
164	if_vlan \
165	if_vxlan \
166	iflib \
167	${_iir} \
168	imgact_binmisc \
169	${_intelspi} \
170	${_io} \
171	${_ioat} \
172        ${_ipoib} \
173	${_ipdivert} \
174	${_ipfilter} \
175	${_ipfw} \
176	ipfw_nat \
177	${_ipfw_nat64} \
178	${_ipfw_nptv6} \
179	${_ipfw_pmod} \
180	${_ipmi} \
181	ip6_mroute_mod \
182	ip_mroute_mod \
183	${_ips} \
184	${_ipsec} \
185	${_ipw} \
186	${_ipwfw} \
187	${_isci} \
188	${_iser} \
189	isp \
190	${_ispfw} \
191	${_itwd} \
192	${_iwi} \
193	${_iwifw} \
194	${_iwm} \
195	${_iwmfw} \
196	${_iwn} \
197	${_iwnfw} \
198	${_ix} \
199	${_ixv} \
200	${_ixl} \
201	jme \
202	kbdmux \
203	kgssapi \
204	kgssapi_krb5 \
205	khelp \
206	krpc \
207	ksyms \
208	${_ktls_ocf} \
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	${_pccard} \
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_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_ktls_ocf=	ktls_ocf
424.endif
425.endif
426
427.if ${MK_CUSE} != "no" || defined(ALL_MODULES)
428SUBDIR+=	cuse
429.endif
430
431.if ${MK_EFI} != "no"
432.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
433_efirt=		efirt
434.endif
435.endif
436
437.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
438	defined(ALL_MODULES)
439_carp=		carp
440_toecore=	toecore
441_if_enc=	if_enc
442_if_gif=	if_gif
443_if_gre=	if_gre
444_ipfw_pmod=	ipfw_pmod
445.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC}
446_ipsec=		ipsec
447.endif
448.if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP}
449_sctp=		sctp
450.endif
451.endif
452
453.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
454	defined(ALL_MODULES)
455_if_stf=	if_stf
456.endif
457
458.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
459_if_me=		if_me
460_ipdivert=	ipdivert
461_ipfw=		ipfw
462.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
463_ipfw_nat64=	ipfw_nat64
464.endif
465.endif
466
467.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
468_ipfw_nptv6=	ipfw_nptv6
469.endif
470
471.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
472_ipfilter=	ipfilter
473.endif
474
475.if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO}
476_dpdk_lpm4=	dpdk_lpm4
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} == "i386" || ${MACHINE_CPUARCH} == "amd64"
618_agp=		agp
619_an=		an
620_aout=		aout
621_bios=		bios
622.if ${MK_SOURCELESS_UCODE} != "no"
623_bxe=		bxe
624.endif
625_cardbus=	cardbus
626_cbb=		cbb
627_cpuctl=	cpuctl
628_cpufreq=	cpufreq
629_dpms=		dpms
630_em=		em
631_et=		et
632_ftwd=		ftwd
633_exca=		exca
634_io=		io
635_itwd=		itwd
636_ix=		ix
637_ixv=		ixv
638.if ${MK_SOURCELESS_UCODE} != "no"
639_lio=		lio
640.endif
641_nctgpio=	nctgpio
642_ntb=		ntb
643_ocs_fc=	ocs_fc
644_pccard=	pccard
645_qat=		qat
646_qatfw=		qatfw
647.if ${MK_OFED} != "no" || defined(ALL_MODULES)
648_rdma=		rdma
649.endif
650_safe=		safe
651_speaker=	speaker
652_splash=	splash
653_sppp=		sppp
654_wbwd=		wbwd
655
656_aac=		aac
657_aacraid=	aacraid
658_acpi=		acpi
659.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
660_aesni=		aesni
661.endif
662_amd_ecc_inject=amd_ecc_inject
663_amdsbwd=	amdsbwd
664_amdsmn=	amdsmn
665_amdtemp=	amdtemp
666_arcmsr=	arcmsr
667_asmc=		asmc
668.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
669_blake2=	blake2
670.endif
671_bytgpio=	bytgpio
672_chvgpio=	chvgpio
673_ciss=		ciss
674_chromebook_platform=	chromebook_platform
675_coretemp=	coretemp
676.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
677_hpt27xx=	hpt27xx
678.endif
679_hptiop=	hptiop
680.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
681_hptmv=		hptmv
682_hptnr=		hptnr
683_hptrr=		hptrr
684.endif
685_hyperv=	hyperv
686_ichwd=		ichwd
687_ida=		ida
688_iir=		iir
689_intelspi=	intelspi
690_ips=		ips
691_isci=		isci
692_ipw=		ipw
693_iwi=		iwi
694_iwm=		iwm
695_iwn=		iwn
696.if ${MK_SOURCELESS_UCODE} != "no"
697_ipwfw=		ipwfw
698_iwifw=		iwifw
699_iwmfw=		iwmfw
700_iwnfw=		iwnfw
701.endif
702_mly=		mly
703_nfe=		nfe
704_nvd=		nvd
705_nvme=		nvme
706_nvram=		nvram
707.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
708_padlock=	padlock
709_padlock_rng=	padlock_rng
710_rdrand_rng=	rdrand_rng
711.endif
712_pchtherm = pchtherm
713_s3=		s3
714_sdhci_acpi=	sdhci_acpi
715_superio=	superio
716_tpm=		tpm
717_twa=		twa
718_vesa=		vesa
719_viawd=		viawd
720_wpi=		wpi
721.if ${MK_SOURCELESS_UCODE} != "no"
722_wpifw=		wpifw
723.endif
724_x86bios=	x86bios
725.endif
726
727.if ${MACHINE_CPUARCH} == "amd64"
728_amdgpio=	amdgpio
729_ccp=		ccp
730_iavf=		iavf
731_ioat=		ioat
732_ixl=		ixl
733_nvdimm=	nvdimm
734_pms=		pms
735_qlxge=		qlxge
736_qlxgb=		qlxgb
737_sume=		sume
738_vmd=		vmd
739.if ${MK_SOURCELESS_UCODE} != "no"
740_qlxgbe=	qlxgbe
741_qlnx=		qlnx
742.endif
743_sfxge=		sfxge
744_sgx=		sgx
745_sgx_linux=	sgx_linux
746_smartpqi=	smartpqi
747
748.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
749.if ${KERN_OPTS:MSMP}
750_vmm=		vmm
751.endif
752.endif
753.endif
754
755.if ${MACHINE_CPUARCH} == "i386"
756# XXX some of these can move to the general case when de-i386'ed
757# XXX some of these can move now, but are untested on other architectures.
758_3dfx=		3dfx
759_3dfx_linux=	3dfx_linux
760.if ${MK_SOURCELESS_HOST} != "no"
761_ce=		ce
762.endif
763.if ${MK_SOURCELESS_HOST} != "no"
764_cp=		cp
765.endif
766_glxiic=	glxiic
767_glxsb=		glxsb
768_pcfclock=	pcfclock
769_pst=		pst
770_sbni=		sbni
771.endif
772
773.if ${MACHINE_ARCH} == "armv7"
774_cfi=		cfi
775_cpsw=		cpsw
776.endif
777
778.if ${MACHINE_CPUARCH} == "powerpc"
779_aacraid=	aacraid
780_agp=		agp
781_an=		an
782_cardbus=	cardbus
783_cbb=		cbb
784_cfi=		cfi
785_cpufreq=	cpufreq
786_exca=		exca
787_ffec=		ffec
788_nvd=		nvd
789_nvme=		nvme
790_pccard=	pccard
791.endif
792
793.if ${MACHINE_ARCH:Mpowerpc64*} != ""
794_ipmi=		ipmi
795_ixl=		ixl
796_nvram=		opal_nvram
797.endif
798.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
799# Don't build powermac_nvram for powerpcspe, it's never supported.
800_nvram+=	powermac_nvram
801.endif
802
803.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
804     ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386")
805_cloudabi32=	cloudabi32
806.endif
807.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
808_cloudabi64=	cloudabi64
809.endif
810
811.endif
812
813.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
814_bcm283x_clkman=  bcm283x_clkman
815_bcm283x_pwm=  bcm283x_pwm
816.endif
817
818.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000)
819# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11:
820# https://bugs.llvm.org/show_bug.cgi?id=44351
821_malo=	malo
822.endif
823
824SUBDIR+=${MODULES_EXTRA}
825
826.for reject in ${WITHOUT_MODULES}
827SUBDIR:= ${SUBDIR:N${reject}}
828.endfor
829
830# Calling kldxref(8) for each module is expensive.
831.if !defined(NO_XREF)
832.MAKEFLAGS+=	-DNO_XREF
833afterinstall: .PHONY
834	@if type kldxref >/dev/null 2>&1; then \
835		${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
836		${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \
837	fi
838.endif
839
840SUBDIR:= ${SUBDIR:u:O}
841
842.include <bsd.subdir.mk>
843