xref: /freebsd/sys/modules/Makefile (revision 369c692350f53cc5abd8e3056ad3d80c2155820e)
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	${_cmx} \
95	${_coretemp} \
96	${_cp} \
97	${_cpsw} \
98	${_cpuctl} \
99	${_cpufreq} \
100	${_crypto} \
101	${_cryptodev} \
102	ctl \
103	${_cxgb} \
104	${_cxgbe} \
105	dc \
106	dcons \
107	dcons_crom \
108	${_dpms} \
109	dummynet \
110	${_efirt} \
111	${_em} \
112	${_ena} \
113	esp \
114	${_et} \
115	evdev \
116	${_exca} \
117	ext2fs \
118	fdc \
119	fdescfs \
120	${_ffec} \
121	filemon \
122	firewire \
123	firmware \
124	${_ftwd} \
125	fusefs \
126	${_fxp} \
127	gem \
128	geom \
129	${_glxiic} \
130	${_glxsb} \
131	gpio \
132	hifn \
133	hme \
134	${_hpt27xx} \
135	${_hptiop} \
136	${_hptmv} \
137	${_hptnr} \
138	${_hptrr} \
139	hwpmc \
140	${_hwpmc_mips24k} \
141	${_hwpmc_mips74k} \
142	${_hyperv} \
143	i2c \
144	${_iavf} \
145        ${_ibcore} \
146	${_ichwd} \
147	${_ice} \
148	${_ice_ddp} \
149	${_ida} \
150	if_bridge \
151	if_disc \
152	if_edsc \
153	${_if_enc} \
154	if_epair \
155	${_if_gif} \
156	${_if_gre} \
157	${_if_me} \
158	if_infiniband \
159	if_lagg \
160	${_if_ndis} \
161	${_if_stf} \
162	if_tuntap \
163	if_vlan \
164	if_vxlan \
165	if_wg \
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	${_ndis} \
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	${_pccard} \
287	${_pchtherm} \
288	${_pcfclock} \
289	${_pf} \
290	${_pflog} \
291	${_pfsync} \
292	plip \
293	${_pms} \
294	ppbus \
295	ppc \
296	ppi \
297	pps \
298	procfs \
299	proto \
300	pseudofs \
301	${_pst} \
302	pty  \
303	puc \
304	pwm \
305	${_qat} \
306	${_qatfw} \
307	${_qlxge} \
308	${_qlxgb} \
309	${_qlxgbe} \
310	${_qlnx} \
311	ral \
312	${_ralfw} \
313	${_random_fortuna} \
314	${_random_other} \
315	rc4 \
316	${_rdma} \
317	${_rdrand_rng} \
318	re \
319	rl \
320	${_rockchip} \
321	rtsx \
322	rtwn \
323	rtwn_pci \
324	rtwn_usb \
325	${_rtwnfw} \
326	${_s3} \
327	${_safe} \
328	safexcel \
329	${_sbni} \
330	scc \
331	${_sctp} \
332	sdhci \
333	${_sdhci_acpi} \
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	${_sppp} \
354	ste \
355	stge \
356	${_sume} \
357	${_superio} \
358	${_sym} \
359	${_syscons} \
360	sysvipc \
361	tcp \
362	${_ti} \
363	tmpfs \
364	${_toecore} \
365	${_tpm} \
366	${_twa} \
367	twe \
368	tws \
369	uart \
370	udf \
371	udf_iconv \
372	ufs \
373	uinput \
374	unionfs \
375	usb \
376	${_vesa} \
377	${_virtio} \
378	vge \
379	${_viawd} \
380	videomode \
381	vkbd \
382	${_vmd} \
383	${_vmm} \
384	${_vmware} \
385	vr \
386	vte \
387	${_wbwd} \
388	${_wi} \
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_ISCSI} != "no" || defined(ALL_MODULES)
478SUBDIR+=	cfiscsi
479SUBDIR+=	iscsi
480SUBDIR+=	iscsi_initiator
481.endif
482
483.if !empty(OPT_FDT)
484SUBDIR+=	fdt
485.endif
486
487# Linuxulator
488.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
489    ${MACHINE_CPUARCH} == "i386"
490SUBDIR+=	linprocfs
491SUBDIR+=	linsysfs
492.endif
493.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
494SUBDIR+=	linux
495.endif
496.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
497SUBDIR+=	linux64
498SUBDIR+=	linux_common
499.endif
500
501.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
502    ${MACHINE_CPUARCH} == "i386"
503_ena=		ena
504.if ${MK_OFED} != "no" || defined(ALL_MODULES)
505_ibcore=	ibcore
506_ipoib=		ipoib
507_iser=		iser
508.endif
509_mlx4=		mlx4
510_mlx5=		mlx5
511.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
512	defined(ALL_MODULES)
513_mlx4en=	mlx4en
514_mlx5en=	mlx5en
515.endif
516.if ${MK_OFED} != "no" || defined(ALL_MODULES)
517_mthca=		mthca
518_mlx4ib=	mlx4ib
519_mlx5ib=	mlx5ib
520.endif
521_ossl=		ossl
522_vmware=	vmware
523.endif
524
525.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
526_netgraph=	netgraph
527.endif
528
529.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
530	${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
531_pf=		pf
532_pflog=		pflog
533.if ${MK_INET_SUPPORT} != "no"
534_pfsync=	pfsync
535.endif
536.endif
537
538.if ${MK_SOURCELESS_UCODE} != "no"
539_bce=		bce
540_fxp=		fxp
541_ispfw=		ispfw
542_ti=		ti
543
544.if ${MACHINE_CPUARCH} != "mips"
545_mwlfw=		mwlfw
546_otusfw=	otusfw
547_ralfw=		ralfw
548_rtwnfw=	rtwnfw
549.endif
550.endif
551
552.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
553	${MACHINE_CPUARCH} != "mips" && \
554	${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
555	${MACHINE_CPUARCH} != "riscv"
556_cxgbe=		cxgbe
557.endif
558
559.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64"
560_ice=		ice
561.if ${MK_SOURCELESS_UCODE} != "no"
562_ice_ddp=	ice_ddp
563.endif
564.endif
565
566# These rely on 64bit atomics
567.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
568	${MACHINE_CPUARCH} != "mips"
569_mps=		mps
570_mpr=		mpr
571.endif
572
573.if ${MK_TESTS} != "no" || defined(ALL_MODULES)
574SUBDIR+=	tests
575.endif
576
577.if ${MK_ZFS} != "no" || (defined(ALL_MODULES)  && ${MACHINE_CPUARCH} != "powerpc")
578SUBDIR+=	zfs
579.endif
580
581.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
582_hwpmc_mips24k=	hwpmc_mips24k
583_hwpmc_mips74k=	hwpmc_mips74k
584.endif
585
586.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \
587	${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \
588	${MACHINE_CPUARCH} != "riscv"
589_syscons=	syscons
590.endif
591
592.if ${MACHINE_CPUARCH} != "mips"
593# no BUS_SPACE_UNSPECIFIED
594# No barrier instruction support (specific to this driver)
595_sym=		sym
596# intr_disable() is a macro, causes problems
597.if ${MK_SOURCELESS_UCODE} != "no"
598_cxgb=		cxgb
599.endif
600.endif
601
602.if ${MACHINE_CPUARCH} == "aarch64"
603_allwinner=	allwinner
604_armv8crypto=	armv8crypto
605_em=		em
606_rockchip=	rockchip
607.endif
608
609.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
610_agp=		agp
611_an=		an
612_aout=		aout
613_bios=		bios
614.if ${MK_SOURCELESS_UCODE} != "no"
615_bxe=		bxe
616.endif
617_cardbus=	cardbus
618_cbb=		cbb
619_cpuctl=	cpuctl
620_cpufreq=	cpufreq
621_dpms=		dpms
622_em=		em
623_et=		et
624_ftwd=		ftwd
625_exca=		exca
626_if_ndis=	if_ndis
627_io=		io
628_itwd=		itwd
629_ix=		ix
630_ixv=		ixv
631.if ${MK_SOURCELESS_UCODE} != "no"
632_lio=		lio
633.endif
634_nctgpio=	nctgpio
635_ndis=		ndis
636_ntb=		ntb
637_ocs_fc=	ocs_fc
638_pccard=	pccard
639_qat=		qat
640_qatfw=		qatfw
641.if ${MK_OFED} != "no" || defined(ALL_MODULES)
642_rdma=		rdma
643.endif
644_safe=		safe
645_speaker=	speaker
646_splash=	splash
647_sppp=		sppp
648_wbwd=		wbwd
649_wi=		wi
650
651_aac=		aac
652_aacraid=	aacraid
653_acpi=		acpi
654.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
655_aesni=		aesni
656.endif
657_amd_ecc_inject=amd_ecc_inject
658_amdsbwd=	amdsbwd
659_amdsmn=	amdsmn
660_amdtemp=	amdtemp
661_arcmsr=	arcmsr
662_asmc=		asmc
663.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
664_blake2=	blake2
665.endif
666_bytgpio=	bytgpio
667_chvgpio=	chvgpio
668_ciss=		ciss
669_chromebook_platform=	chromebook_platform
670_cmx=		cmx
671_coretemp=	coretemp
672.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
673_hpt27xx=	hpt27xx
674.endif
675_hptiop=	hptiop
676.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED)
677_hptmv=		hptmv
678_hptnr=		hptnr
679_hptrr=		hptrr
680.endif
681_hyperv=	hyperv
682_ichwd=		ichwd
683_ida=		ida
684_iir=		iir
685_intelspi=	intelspi
686_ipmi=		ipmi
687_ips=		ips
688_isci=		isci
689_ipw=		ipw
690_iwi=		iwi
691_iwm=		iwm
692_iwn=		iwn
693.if ${MK_SOURCELESS_UCODE} != "no"
694_ipwfw=		ipwfw
695_iwifw=		iwifw
696_iwmfw=		iwmfw
697_iwnfw=		iwnfw
698.endif
699_mly=		mly
700_nfe=		nfe
701_nvd=		nvd
702_nvme=		nvme
703_nvram=		nvram
704.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
705_padlock=	padlock
706_padlock_rng=	padlock_rng
707_rdrand_rng=	rdrand_rng
708.endif
709_pchtherm = pchtherm
710_s3=		s3
711_sdhci_acpi=	sdhci_acpi
712_superio=	superio
713_tpm=		tpm
714_twa=		twa
715_vesa=		vesa
716_viawd=		viawd
717_virtio=	virtio
718_wpi=		wpi
719.if ${MK_SOURCELESS_UCODE} != "no"
720_wpifw=		wpifw
721.endif
722_x86bios=	x86bios
723.endif
724
725.if ${MACHINE_CPUARCH} == "amd64"
726_amdgpio=	amdgpio
727_ccp=		ccp
728_iavf=		iavf
729_ioat=		ioat
730_ixl=		ixl
731_nvdimm=	nvdimm
732_pms=		pms
733_qlxge=		qlxge
734_qlxgb=		qlxgb
735_sume=		sume
736_vmd=		vmd
737.if ${MK_SOURCELESS_UCODE} != "no"
738_qlxgbe=	qlxgbe
739_qlnx=		qlnx
740.endif
741_sfxge=		sfxge
742_sgx=		sgx
743_sgx_linux=	sgx_linux
744_smartpqi=	smartpqi
745
746.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
747.if ${KERN_OPTS:MSMP}
748_vmm=		vmm
749.endif
750.endif
751.endif
752
753.if ${MACHINE_CPUARCH} == "i386"
754# XXX some of these can move to the general case when de-i386'ed
755# XXX some of these can move now, but are untested on other architectures.
756_3dfx=		3dfx
757_3dfx_linux=	3dfx_linux
758.if ${MK_SOURCELESS_HOST} != "no"
759_ce=		ce
760.endif
761.if ${MK_SOURCELESS_UCODE} != "no"
762_cp=		cp
763.endif
764_glxiic=	glxiic
765_glxsb=		glxsb
766_pcfclock=	pcfclock
767_pst=		pst
768_sbni=		sbni
769.endif
770
771.if ${MACHINE_ARCH} == "armv7"
772_cfi=		cfi
773_cpsw=		cpsw
774.endif
775
776.if ${MACHINE_CPUARCH} == "powerpc"
777_aacraid=	aacraid
778_agp=		agp
779_an=		an
780_cardbus=	cardbus
781_cbb=		cbb
782_cfi=		cfi
783_cpufreq=	cpufreq
784_exca=		exca
785_ffec=		ffec
786_nvd=		nvd
787_nvme=		nvme
788_pccard=	pccard
789_wi=		wi
790_virtio=	virtio
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